﻿using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using ConsolidationTool.Common.Entities;
using System.Collections.Generic;
using ConsolidationTool.Common;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using ConsolidationTool.WebParts.ControlTemplates;

using System.ComponentModel;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Script.Serialization;

namespace ConsolidationTool.WebParts.Layouts.CReport.Brochure
{
    public partial class P8GFC : LayoutsPageBase
    {
        List<Group> regionGroup = new List<Group>();
        List<Group> subRegionGroup = new List<Group>();
        List<Group> entityGroup = new List<Group>();
        public CommonEntitySelector TopSelector { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            TopSelector = (commonEntitySelector as CommonEntitySelector);
            //TopSelector.EntitySelectorChanged += new CommonEntitySelector.EntitySelectorChangeHandler(TopSelector_EntitySelectorChanged);

            if (!IsPostBack)
            {
                InitBaseInfo();
            }
        }

        void InitBaseInfo()
        {
            // lbCompanyName.Text = Constants.Company_Name;
            TopSelector.yearTextBox.Text = Common.BusinessService.GetConfiguration(Constants.Flash_Input_Year);
            TopSelector.monthTextBox.Text = Common.BusinessService.GetConfiguration(Constants.Flash_Input_Month);


            switch (TopSelector.monthTextBox.Text)
            {
                case "1":
                    LabelCurrentMonth.Text = "January " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD January " + TopSelector.yearTextBox.Text;
                    break;
                case "2":
                    LabelCurrentMonth.Text = "February " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD February " + TopSelector.yearTextBox.Text;
                    break;
                case "3":
                    LabelCurrentMonth.Text = "March " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD March " + TopSelector.yearTextBox.Text;
                    break;
                case "4":
                    LabelCurrentMonth.Text = "April " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD April " + TopSelector.yearTextBox.Text;
                    break;
                case "5":
                    LabelCurrentMonth.Text = "May " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD May " + TopSelector.yearTextBox.Text;
                    break;
                case "6":
                    LabelCurrentMonth.Text = "June " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD June " + TopSelector.yearTextBox.Text;
                    break;
                case "7":
                    LabelCurrentMonth.Text = "July " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD July " + TopSelector.yearTextBox.Text;
                    break;
                case "8":
                    LabelCurrentMonth.Text = "August " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD August " + TopSelector.yearTextBox.Text;
                    break;
                case "9":
                    LabelCurrentMonth.Text = "September " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD September " + TopSelector.yearTextBox.Text;
                    break;
                case "10":
                    LabelCurrentMonth.Text = "October " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD October " + TopSelector.yearTextBox.Text;
                    break;
                case "11":
                    LabelCurrentMonth.Text = "November " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD November " + TopSelector.yearTextBox.Text;
                    break;
                case "12":
                    LabelCurrentMonth.Text = "December " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD December " + TopSelector.yearTextBox.Text;
                    break;
                default:
                    break;
            }
        }

        protected void GenerateReport_Click(object sender, EventArgs e)
        {
            switch (TopSelector.monthTextBox.Text)
            {
                case "1":
                    LabelCurrentMonth.Text = "January " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD January " + TopSelector.yearTextBox.Text;
                    break;
                case "2":
                    LabelCurrentMonth.Text = "February " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD February " + TopSelector.yearTextBox.Text;
                    break;
                case "3":
                    LabelCurrentMonth.Text = "March " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD March " + TopSelector.yearTextBox.Text;
                    break;
                case "4":
                    LabelCurrentMonth.Text = "April " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD April " + TopSelector.yearTextBox.Text;
                    break;
                case "5":
                    LabelCurrentMonth.Text = "May " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD May " + TopSelector.yearTextBox.Text;
                    break;
                case "6":
                    LabelCurrentMonth.Text = "June " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD June " + TopSelector.yearTextBox.Text;
                    break;
                case "7":
                    LabelCurrentMonth.Text = "July " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD July " + TopSelector.yearTextBox.Text;
                    break;
                case "8":
                    LabelCurrentMonth.Text = "August " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD August " + TopSelector.yearTextBox.Text;
                    break;
                case "9":
                    LabelCurrentMonth.Text = "September " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD September " + TopSelector.yearTextBox.Text;
                    break;
                case "10":
                    LabelCurrentMonth.Text = "October " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD October " + TopSelector.yearTextBox.Text;
                    break;
                case "11":
                    LabelCurrentMonth.Text = "November " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD November " + TopSelector.yearTextBox.Text;
                    break;
                case "12":
                    LabelCurrentMonth.Text = "December " + TopSelector.yearTextBox.Text;
                    LabelYTD.Text = "YTD December " + TopSelector.yearTextBox.Text;
                    break;
                default:
                    break;
            }

            //邦定current月数据
            BindLastMonth(TopSelector.lbCoCd.Text, TopSelector.yearTextBox.Text, TopSelector.monthTextBox.Text);


            AbsFix(1, 13);
        }
        private void AbsFix(int start, int end)
        {
            var allLabel = Page.Controls.AllOfType<Label>();
            for (int i = start; i <= end; i++)
            {
                string fixi = i < 10 ? "0" + i : i + "";

                for (int a = 1; a <= 10; a++)
                {
                    var lab = allLabel.FirstOrDefault(p => p.ID == string.Format("Label{0}_Day{1}", fixi, a)) as Label;
                    string text = lab.Text;
                    if (text != "0")
                        text = text.StartsWith("-") ? text.Substring(1) : "-" + text;
                    lab.Text = text;
                }
            }
        }

        protected void ExportReport_Click(object sender, EventArgs e)
        {
            P6PL Label01 = null;
            Label01 = new P6PL();
            Label01.row01 = Label01_Date1.Text;
            Label01.row02 = Label01_Date2.Text;
            Label01.row03 = Label01_Date3.Text;
            Label01.row04 = Label01_Date4.Text;
            Label01.row05 = Label01_Date5.Text;
            Label01.row06 = Label01_Date6.Text;
            Label01.row07 = Label01_Date7.Text;
            Label01.row08 = Label01_Date8.Text;
            Label01.row09 = Label01_Date9.Text;
            Label01.row10 = Label01_Date10.Text;
            Label01.row11 = Label01_Date11.Text;
            Label01.row12 = Label01_Date12.Text;
            Label01.row13 = Label01_Date13.Text;

            P6PL Graph01 = null;
            Graph01 = new P6PL();
            Graph01.row01 = Graph01_Day1.Text;
            Graph01.row02 = Graph01_Day2.Text;
            Graph01.row03 = Graph01_Day3.Text;
            Graph01.row04 = Graph01_Day4.Text;
            Graph01.row05 = Graph01_Day5.Text;
            Graph01.row06 = Graph01_Day6.Text;
            Graph01.row07 = Graph01_Day7.Text;
            Graph01.row08 = Graph01_Day8.Text;
            Graph01.row09 = Graph01_Day9.Text;
            Graph01.row10 = Graph01_Day10.Text;
            Graph01.row11 = Graph01_Day11.Text;
            Graph01.row12 = Graph01_Day12.Text;
            Graph01.row13 = Graph01_Day13.Text;

            P6PL Graph02 = null;
            Graph02 = new P6PL();
            Graph02.row01 = Graph02_Day1.Text;
            Graph02.row02 = Graph02_Day2.Text;
            Graph02.row03 = Graph02_Day3.Text;
            Graph02.row04 = Graph02_Day4.Text;
            Graph02.row05 = Graph02_Day5.Text;
            Graph02.row06 = Graph02_Day6.Text;
            Graph02.row07 = Graph02_Day7.Text;
            Graph02.row08 = Graph02_Day8.Text;
            Graph02.row09 = Graph02_Day9.Text;
            Graph02.row10 = Graph02_Day10.Text;
            Graph02.row11 = Graph02_Day11.Text;
            Graph02.row12 = Graph02_Day12.Text;
            Graph02.row13 = Graph02_Day13.Text;

            P6PL Graph03 = null;
            Graph03 = new P6PL();
            Graph03.row01 = Graph03_Day1.Text;
            Graph03.row02 = Graph03_Day2.Text;
            Graph03.row03 = Graph03_Day3.Text;
            Graph03.row04 = Graph03_Day4.Text;
            Graph03.row05 = Graph03_Day5.Text;
            Graph03.row06 = Graph03_Day6.Text;
            Graph03.row07 = Graph03_Day7.Text;
            Graph03.row08 = Graph03_Day8.Text;
            Graph03.row09 = Graph03_Day9.Text;
            Graph03.row10 = Graph03_Day10.Text;
            Graph03.row11 = Graph03_Day11.Text;
            Graph03.row12 = Graph03_Day12.Text;
            Graph03.row13 = Graph03_Day13.Text;

            P6PL col01 = null;
            col01 = new P6PL();
            col01.row01 = Label01_Day1.Text;
            col01.row02 = Label02_Day1.Text;
            col01.row03 = Label03_Day1.Text;
            col01.row04 = Label04_Day1.Text;
            col01.row05 = Label05_Day1.Text;
            col01.row06 = Label06_Day1.Text;
            col01.row07 = Label07_Day1.Text;
            col01.row08 = Label08_Day1.Text;
            col01.row09 = Label09_Day1.Text;
            col01.row10 = Label10_Day1.Text;
            col01.row11 = Label11_Day1.Text;
            col01.row12 = Label12_Day1.Text;
            col01.row13 = Label13_Day1.Text;
            col01.row14 = Label14_Day1.Text;
            col01.row15 = Label15_Day1.Text;
            col01.row16 = Label16_Day1.Text;
            col01.row17 = Label17_Day1.Text;
            col01.row18 = Label18_Day1.Text;
            col01.row19 = Label19_Day1.Text;
            col01.row20 = Label20_Day1.Text;
            col01.row30 = Label30_Day1.Text;
            col01.row31 = Label31_Day1.Text;
            col01.row32 = Label32_Day1.Text;
            col01.row33 = Label33_Day1.Text;
            col01.row34 = Label34_Day1.Text;
            col01.row35 = Label35_Day1.Text;
            col01.row36 = Label36_Day1.Text;
            col01.row37 = Label37_Day1.Text;
            col01.row38 = Label38_Day1.Text;

            P6PL col02 = null;
            col02 = new P6PL();
            col02.row01 = Label01_Day2.Text;
            col02.row02 = Label02_Day2.Text;
            col02.row03 = Label03_Day2.Text;
            col02.row04 = Label04_Day2.Text;
            col02.row05 = Label05_Day2.Text;
            col02.row06 = Label06_Day2.Text;
            col02.row07 = Label07_Day2.Text;
            col02.row08 = Label08_Day2.Text;
            col02.row09 = Label09_Day2.Text;
            col02.row10 = Label10_Day2.Text;
            col02.row11 = Label11_Day2.Text;
            col02.row12 = Label12_Day2.Text;
            col02.row13 = Label13_Day2.Text;
            col02.row14 = Label14_Day2.Text;
            col02.row15 = Label15_Day2.Text;
            col02.row16 = Label16_Day2.Text;
            col02.row17 = Label17_Day2.Text;
            col02.row18 = Label18_Day2.Text;
            col02.row19 = Label19_Day2.Text;
            col02.row20 = Label20_Day2.Text;
            col02.row30 = Label30_Day2.Text;
            col02.row31 = Label31_Day2.Text;
            col02.row32 = Label32_Day2.Text;
            col02.row33 = Label33_Day2.Text;
            col02.row34 = Label34_Day2.Text;
            col02.row35 = Label35_Day2.Text;
            col02.row36 = Label36_Day2.Text;
            col02.row37 = Label37_Day2.Text;
            col02.row38 = Label38_Day2.Text;

            P6PL col03 = null;
            col03 = new P6PL();
            col03.row01 = Label01_Day3.Text;
            col03.row02 = Label02_Day3.Text;
            col03.row03 = Label03_Day3.Text;
            col03.row04 = Label04_Day3.Text;
            col03.row05 = Label05_Day3.Text;
            col03.row06 = Label06_Day3.Text;
            col03.row07 = Label07_Day3.Text;
            col03.row08 = Label08_Day3.Text;
            col03.row09 = Label09_Day3.Text;
            col03.row10 = Label10_Day3.Text;
            col03.row11 = Label11_Day3.Text;
            col03.row12 = Label12_Day3.Text;
            col03.row13 = Label13_Day3.Text;
            col03.row14 = Label14_Day3.Text;
            col03.row15 = Label15_Day3.Text;
            col03.row16 = Label16_Day3.Text;
            col03.row17 = Label17_Day3.Text;
            col03.row18 = Label18_Day3.Text;
            col03.row19 = Label19_Day3.Text;
            col03.row20 = Label20_Day3.Text;
            col03.row30 = Label30_Day3.Text;
            col03.row31 = Label31_Day3.Text;
            col03.row32 = Label32_Day3.Text;
            col03.row33 = Label33_Day3.Text;
            col03.row34 = Label34_Day3.Text;
            col03.row35 = Label35_Day3.Text;
            col03.row36 = Label36_Day3.Text;
            col03.row37 = Label37_Day3.Text;
            col03.row38 = Label38_Day3.Text;

            P6PL col04 = null;
            col04 = new P6PL();
            col04.row01 = Label01_Day4.Text;
            col04.row02 = Label02_Day4.Text;
            col04.row03 = Label03_Day4.Text;
            col04.row04 = Label04_Day4.Text;
            col04.row05 = Label05_Day4.Text;
            col04.row06 = Label06_Day4.Text;
            col04.row07 = Label07_Day4.Text;
            col04.row08 = Label08_Day4.Text;
            col04.row09 = Label09_Day4.Text;
            col04.row10 = Label10_Day4.Text;
            col04.row11 = Label11_Day4.Text;
            col04.row12 = Label12_Day4.Text;
            col04.row13 = Label13_Day4.Text;
            col04.row14 = Label14_Day4.Text;
            col04.row15 = Label15_Day4.Text;
            col04.row16 = Label16_Day4.Text;
            col04.row17 = Label17_Day4.Text;
            col04.row18 = Label18_Day4.Text;
            col04.row19 = Label19_Day4.Text;
            col04.row20 = Label20_Day4.Text;
            col04.row30 = Label30_Day4.Text;
            col04.row31 = Label31_Day4.Text;
            col04.row32 = Label32_Day4.Text;
            col04.row33 = Label33_Day4.Text;
            col04.row34 = Label34_Day4.Text;
            col04.row35 = Label35_Day4.Text;
            col04.row36 = Label36_Day4.Text;
            col04.row37 = Label37_Day4.Text;
            col04.row38 = Label38_Day4.Text;

            P6PL col05 = null;
            col05 = new P6PL();
            col05.row01 = Label01_Day5.Text;
            col05.row02 = Label02_Day5.Text;
            col05.row03 = Label03_Day5.Text;
            col05.row04 = Label04_Day5.Text;
            col05.row05 = Label05_Day5.Text;
            col05.row06 = Label06_Day5.Text;
            col05.row07 = Label07_Day5.Text;
            col05.row08 = Label08_Day5.Text;
            col05.row09 = Label09_Day5.Text;
            col05.row10 = Label10_Day5.Text;
            col05.row11 = Label11_Day5.Text;
            col05.row12 = Label12_Day5.Text;
            col05.row13 = Label13_Day5.Text;
            col05.row14 = Label14_Day5.Text;
            col05.row15 = Label15_Day5.Text;
            col05.row16 = Label16_Day5.Text;
            col05.row17 = Label17_Day5.Text;
            col05.row18 = Label18_Day5.Text;
            col05.row19 = Label19_Day5.Text;
            col05.row20 = Label20_Day5.Text;
            col05.row30 = Label30_Day5.Text;
            col05.row31 = Label31_Day5.Text;
            col05.row32 = Label32_Day5.Text;
            col05.row33 = Label33_Day5.Text;
            col05.row34 = Label34_Day5.Text;
            col05.row35 = Label35_Day5.Text;
            col05.row36 = Label36_Day5.Text;

            P6PL col06 = null;
            col06 = new P6PL();
            col06.row01 = Label01_Day6.Text;
            col06.row02 = Label02_Day6.Text;
            col06.row03 = Label03_Day6.Text;
            col06.row04 = Label04_Day6.Text;
            col06.row05 = Label05_Day6.Text;
            col06.row06 = Label06_Day6.Text;
            col06.row07 = Label07_Day6.Text;
            col06.row08 = Label08_Day6.Text;
            col06.row09 = Label09_Day6.Text;
            col06.row10 = Label10_Day6.Text;
            col06.row11 = Label11_Day6.Text;
            col06.row12 = Label12_Day6.Text;
            col06.row13 = Label13_Day6.Text;
            col06.row14 = Label14_Day6.Text;
            col06.row15 = Label15_Day6.Text;
            col06.row16 = Label16_Day6.Text;
            col06.row17 = Label17_Day6.Text;
            col06.row18 = Label18_Day6.Text;
            col06.row19 = Label19_Day6.Text;
            col06.row20 = Label20_Day6.Text;
            col06.row30 = Label30_Day6.Text;
            col06.row31 = Label31_Day6.Text;
            col06.row32 = Label32_Day6.Text;
            col06.row33 = Label33_Day6.Text;
            col06.row34 = Label34_Day6.Text;
            col06.row35 = Label35_Day6.Text;
            col06.row36 = Label36_Day6.Text;

            P6PL col07 = null;
            col07 = new P6PL();
            col07.row01 = Label01_Day7.Text;
            col07.row02 = Label02_Day7.Text;
            col07.row03 = Label03_Day7.Text;
            col07.row04 = Label04_Day7.Text;
            col07.row05 = Label05_Day7.Text;
            col07.row06 = Label06_Day7.Text;
            col07.row07 = Label07_Day7.Text;
            col07.row08 = Label08_Day7.Text;
            col07.row09 = Label09_Day7.Text;
            col07.row10 = Label10_Day7.Text;
            col07.row11 = Label11_Day7.Text;
            col07.row12 = Label12_Day7.Text;
            col07.row13 = Label13_Day7.Text;
            col07.row14 = Label14_Day7.Text;
            col07.row15 = Label15_Day7.Text;
            col07.row16 = Label16_Day7.Text;
            col07.row17 = Label17_Day7.Text;
            col07.row18 = Label18_Day7.Text;
            col07.row19 = Label19_Day7.Text;
            col07.row20 = Label20_Day7.Text;
            col07.row30 = Label30_Day7.Text;
            col07.row31 = Label31_Day7.Text;
            col07.row32 = Label32_Day7.Text;
            col07.row33 = Label33_Day7.Text;
            col07.row34 = Label34_Day7.Text;
            col07.row35 = Label35_Day7.Text;
            col07.row36 = Label36_Day7.Text;

            P6PL col08 = null;
            col08 = new P6PL();
            col08.row01 = Label01_Day8.Text;
            col08.row02 = Label02_Day8.Text;
            col08.row03 = Label03_Day8.Text;
            col08.row04 = Label04_Day8.Text;
            col08.row05 = Label05_Day8.Text;
            col08.row06 = Label06_Day8.Text;
            col08.row07 = Label07_Day8.Text;
            col08.row08 = Label08_Day8.Text;
            col08.row09 = Label09_Day8.Text;
            col08.row10 = Label10_Day8.Text;
            col08.row11 = Label11_Day8.Text;
            col08.row12 = Label12_Day8.Text;
            col08.row13 = Label13_Day8.Text;
            col08.row14 = Label14_Day8.Text;
            col08.row15 = Label15_Day8.Text;
            col08.row16 = Label16_Day8.Text;
            col08.row17 = Label17_Day8.Text;
            col08.row18 = Label18_Day8.Text;
            col08.row19 = Label19_Day8.Text;
            col08.row20 = Label20_Day8.Text;

            P6PL col09 = null;
            col09 = new P6PL();
            col09.row01 = Label01_Day9.Text;
            col09.row02 = Label02_Day9.Text;
            col09.row03 = Label03_Day9.Text;
            col09.row04 = Label04_Day9.Text;
            col09.row05 = Label05_Day9.Text;
            col09.row06 = Label06_Day9.Text;
            col09.row07 = Label07_Day9.Text;
            col09.row08 = Label08_Day9.Text;
            col09.row09 = Label09_Day9.Text;
            col09.row10 = Label10_Day9.Text;
            col09.row11 = Label11_Day9.Text;
            col09.row12 = Label12_Day9.Text;
            col09.row13 = Label13_Day9.Text;
            col09.row14 = Label14_Day9.Text;
            col09.row15 = Label15_Day9.Text;
            col09.row16 = Label16_Day9.Text;
            col09.row17 = Label17_Day9.Text;
            col09.row18 = Label18_Day9.Text;
            col09.row19 = Label19_Day9.Text;
            col09.row20 = Label20_Day9.Text;

            P6PL col10 = null;
            col10 = new P6PL();
            col10.row01 = Label01_Day10.Text;
            col10.row02 = Label02_Day10.Text;
            col10.row03 = Label03_Day10.Text;
            col10.row04 = Label04_Day10.Text;
            col10.row05 = Label05_Day10.Text;
            col10.row06 = Label06_Day10.Text;
            col10.row07 = Label07_Day10.Text;
            col10.row08 = Label08_Day10.Text;
            col10.row09 = Label09_Day10.Text;
            col10.row10 = Label10_Day10.Text;
            col10.row11 = Label11_Day10.Text;
            col10.row12 = Label12_Day10.Text;
            col10.row13 = Label13_Day10.Text;
            col10.row14 = Label14_Day10.Text;
            col10.row15 = Label15_Day10.Text;
            col10.row16 = Label16_Day10.Text;
            col10.row17 = Label17_Day10.Text;
            col10.row18 = Label18_Day10.Text;
            col10.row19 = Label19_Day10.Text;
            col10.row20 = Label20_Day10.Text;

            string fileName = TopSelector.yearTextBox.Text + TopSelector.monthTextBox.Text + Constants._Brochure_P8_PRIFIX + TopSelector.lbCoCd.Text + ".xlsx";
            BusinessService.CreateP8Excel(Label01, Graph01, Graph02, Graph03, LabelTitile00.Text, col01, col02, col03, col04, col05, col06, col07, col08, col09, col10, fileName, LabelCurrentMonth.Text, LabelYTD.Text, LabelCurrMonY1.Text, LabelDecY1.Text, LabelCurrMonY.Text, LabelBudgetDecY.Text);
            SPSite site = new SPSite(SPContext.Current.Site.ID);
            string reportUrl = site.Url + "/" + Constants._EXCEL_Library + "/" + fileName;
            Page.ClientScript.RegisterStartupScript(this.GetType(), "Message", string.Format("<script>window.open('" + reportUrl + "');</script>"));

        }

        [Serializable]
        public class fsentity
        {
            public bool controlrow { get; set; }
            public bool datarow { get; set; }
            public bool insertcontrol { get; set; }
            public bool bold { get; set; }
            public string unit { get; set; }
            public string accountcode { get; set; }
            public string description { get; set; }
            public string Jan { get; set; }
            public string Feb { get; set; }
            public string Mar { get; set; }
            public string Apr { get; set; }
            public string May { get; set; }
            public string Jun { get; set; }
            public string Jul { get; set; }
            public string Aug { get; set; }
            public string Sep { get; set; }
            public string Oct { get; set; }
            public string Nov { get; set; }
            public string Dec { get; set; }
            public int digits { get; set; }
        }
        public class fsentityAc
        {
            public bool controlrow { get; set; }
            public bool datarow { get; set; }
            public bool insertcontrol { get; set; }
            public bool bold { get; set; }
            public string unit { get; set; }
            public string accountcode { get; set; }
            public string description { get; set; }
            public string YTDM_1 { get; set; }
            public string YTD { get; set; }
            public string CM { get; set; }
            public int digits { get; set; }
        }

        void BindLastMonth(string coCd, string year, string month)
        {
            string strCurrency = TopSelector.lbCompanyCurrency.Text;
            string strTonnage = TopSelector.lbCompanyTonnage.Text;

            LabelTitile00.Text = strCurrency;
            //LabelTitile01.Text = strCurrency;

            int m = Convert.ToInt32(TopSelector.monthTextBox.Text);

            int y = Convert.ToInt32(year) - 1;
            string yearN_1 = Convert.ToString(y);
            int y2 = Convert.ToInt32(year) - 2;
            string yearN_2 = Convert.ToString(y2);

            List<String> monthList = new List<String>();
            string year_n_1 = yearN_1.Substring(2);
            for (int i = m; i <= 12; i++)
            {
                string strMonth = i.ToString();

                switch (i.ToString())
                {
                    case "1":
                        monthList.Add("Jan-" + year_n_1);
                        break;
                    case "2":
                        monthList.Add("Feb-" + year_n_1);
                        break;
                    case "3":
                        monthList.Add("Mar-" + year_n_1);
                        break;
                    case "4":
                        monthList.Add("Apr-" + year_n_1);
                        break;
                    case "5":
                        monthList.Add("May-" + year_n_1);
                        break;
                    case "6":
                        monthList.Add("Jun-" + year_n_1);
                        break;
                    case "7":
                        monthList.Add("Jul-" + year_n_1);
                        break;
                    case "8":
                        monthList.Add("Aug-" + year_n_1);
                        break;
                    case "9":
                        monthList.Add("Sep-" + year_n_1);
                        break;
                    case "10":
                        monthList.Add("Oct-" + year_n_1);
                        break;
                    case "11":
                        monthList.Add("Nov-" + year_n_1);
                        break;
                    case "12":
                        monthList.Add("Dec-" + year_n_1);
                        break;
                    default:
                        break;
                }
            }

            string year_title = year.Substring(2);
            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                switch (i.ToString())
                {
                    case "1":
                        monthList.Add("Jan-" + year_title);
                        break;
                    case "2":
                        monthList.Add("Feb-" + year_title);
                        break;
                    case "3":
                        monthList.Add("Mar-" + year_title);
                        break;
                    case "4":
                        monthList.Add("Apr-" + year_title);
                        break;
                    case "5":
                        monthList.Add("May-" + year_title);
                        break;
                    case "6":
                        monthList.Add("Jun-" + year_title);
                        break;
                    case "7":
                        monthList.Add("Jul-" + year_title);
                        break;
                    case "8":
                        monthList.Add("Aug-" + year_title);
                        break;
                    case "9":
                        monthList.Add("Sep-" + year_title);
                        break;
                    case "10":
                        monthList.Add("Oct-" + year_title);
                        break;
                    case "11":
                        monthList.Add("Nov-" + year_title);
                        break;
                    case "12":
                        monthList.Add("Dec-" + year_title);
                        break;
                    default:
                        break;
                }
            }

            Label01_Date1.Text = monthList[0];
            Label01_Date2.Text = monthList[1];
            Label01_Date3.Text = monthList[2];
            Label01_Date4.Text = monthList[3];
            Label01_Date5.Text = monthList[4];
            Label01_Date6.Text = monthList[5];
            Label01_Date7.Text = monthList[6];
            Label01_Date8.Text = monthList[7];
            Label01_Date9.Text = monthList[8];
            Label01_Date10.Text = monthList[9];
            Label01_Date11.Text = monthList[10];
            Label01_Date12.Text = monthList[11];
            Label01_Date13.Text = monthList[12];

            Graph01_Day1.Text = "0";
            Graph01_Day2.Text = "0";
            Graph01_Day3.Text = "0";
            Graph01_Day4.Text = "0";
            Graph01_Day5.Text = "0";
            Graph01_Day6.Text = "0";
            Graph01_Day7.Text = "0";
            Graph01_Day8.Text = "0";
            Graph01_Day9.Text = "0";
            Graph01_Day10.Text = "0";
            Graph01_Day11.Text = "0";
            Graph01_Day12.Text = "0";
            Graph01_Day13.Text = "0";

            Graph02_Day1.Text = "0";
            Graph02_Day2.Text = "0";
            Graph02_Day3.Text = "0";
            Graph02_Day4.Text = "0";
            Graph02_Day5.Text = "0";
            Graph02_Day6.Text = "0";
            Graph02_Day7.Text = "0";
            Graph02_Day8.Text = "0";
            Graph02_Day9.Text = "0";
            Graph02_Day10.Text = "0";
            Graph02_Day11.Text = "0";
            Graph02_Day12.Text = "0";
            Graph02_Day13.Text = "0";

            Graph03_Day1.Text = "0";
            Graph03_Day2.Text = "0";
            Graph03_Day3.Text = "0";
            Graph03_Day4.Text = "0";
            Graph03_Day5.Text = "0";
            Graph03_Day6.Text = "0";
            Graph03_Day7.Text = "0";
            Graph03_Day8.Text = "0";
            Graph03_Day9.Text = "0";
            Graph03_Day10.Text = "0";
            Graph03_Day11.Text = "0";
            Graph03_Day12.Text = "0";
            Graph03_Day13.Text = "0";

            int f = 1;
            for (int i = m; i <= 12; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemBSCurr = Common.BusinessService.GetItem(coCd, yearN_1, strMonth, "Balance Sheet");
                if (itemBSCurr != null)
                {
                    switch (f.ToString())
                    {
                        case "1":
                            Graph01_Day1.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "2":
                            Graph01_Day2.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "3":
                            Graph01_Day3.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "4":
                            Graph01_Day4.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "5":
                            Graph01_Day5.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "6":
                            Graph01_Day6.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "7":
                            Graph01_Day7.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "8":
                            Graph01_Day8.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "9":
                            Graph01_Day9.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "10":
                            Graph01_Day10.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "11":
                            Graph01_Day11.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "12":
                            Graph01_Day12.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        default:
                            break;
                    }
                }
                f = f + 1;
            }

            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemBSCurr = Common.BusinessService.GetItem(coCd, year, strMonth, "Balance Sheet");
                if (itemBSCurr != null)
                {
                    switch (f.ToString())
                    {
                        case "1":
                            Graph01_Day1.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "2":
                            Graph01_Day2.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "3":
                            Graph01_Day3.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "4":
                            Graph01_Day4.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "5":
                            Graph01_Day5.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "6":
                            Graph01_Day6.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "7":
                            Graph01_Day7.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "8":
                            Graph01_Day8.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "9":
                            Graph01_Day9.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "10":
                            Graph01_Day10.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "11":
                            Graph01_Day11.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "12":
                            Graph01_Day12.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        case "13":
                            Graph01_Day13.Text = itemBSCurr["CM_WC02010000"].ToString();
                            break;
                        default:
                            break;
                    }
                }
                f = f + 1;
            }

            List<String> budgetBS = new List<String>();
            SPListItem itemBudgetBSN = Common.BusinessService.GetBudgetItem(coCd, year, "Budget_BS");
            SPListItem itemBudgetBSN_1 = Common.BusinessService.GetBudgetItem(coCd, yearN_1, "Budget_BS");
            if (itemBudgetBSN_1 != null)
            {
                string billData = itemBudgetBSN_1["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

                var objentity = obj as List<fsentity>;

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "WC03010000")
                    {

                        for (int i = m; i <= 12; i++)
                        {
                            string strMonth = i.ToString();

                            switch (i.ToString())
                            {
                                case "1":
                                    budgetBS.Add(p.Jan.ToString());
                                    break;
                                case "2":
                                    budgetBS.Add(p.Feb.ToString());
                                    break;
                                case "3":
                                    budgetBS.Add(p.Mar.ToString());
                                    break;
                                case "4":
                                    budgetBS.Add(p.Apr.ToString());
                                    break;
                                case "5":
                                    budgetBS.Add(p.May.ToString());
                                    break;
                                case "6":
                                    budgetBS.Add(p.Jun.ToString());
                                    break;
                                case "7":
                                    budgetBS.Add(p.Jul.ToString());
                                    break;
                                case "8":
                                    budgetBS.Add(p.Aug.ToString());
                                    break;
                                case "9":
                                    budgetBS.Add(p.Sep.ToString());
                                    break;
                                case "10":
                                    budgetBS.Add(p.Oct.ToString());
                                    break;
                                case "11":
                                    budgetBS.Add(p.Nov.ToString());
                                    break;
                                case "12":
                                    budgetBS.Add(p.Dec.ToString());
                                    break;
                                default:
                                    break;
                            }
                        }
                    }
                });
            }
            else
            {
                for (int i = m; i <= 12; i++)
                {
                    budgetBS.Add("0");
                }
            }

            if (itemBudgetBSN != null)
            {
                string billData = itemBudgetBSN["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

                var objentity = obj as List<fsentity>;

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "WC03010000")
                    {

                        for (int i = 1; i <= m; i++)
                        {
                            string strMonth = i.ToString();

                            switch (i.ToString())
                            {
                                case "1":
                                    budgetBS.Add(p.Jan.ToString());
                                    break;
                                case "2":
                                    budgetBS.Add(p.Feb.ToString());
                                    break;
                                case "3":
                                    budgetBS.Add(p.Mar.ToString());
                                    break;
                                case "4":
                                    budgetBS.Add(p.Apr.ToString());
                                    break;
                                case "5":
                                    budgetBS.Add(p.May.ToString());
                                    break;
                                case "6":
                                    budgetBS.Add(p.Jun.ToString());
                                    break;
                                case "7":
                                    budgetBS.Add(p.Jul.ToString());
                                    break;
                                case "8":
                                    budgetBS.Add(p.Aug.ToString());
                                    break;
                                case "9":
                                    budgetBS.Add(p.Sep.ToString());
                                    break;
                                case "10":
                                    budgetBS.Add(p.Oct.ToString());
                                    break;
                                case "11":
                                    budgetBS.Add(p.Nov.ToString());
                                    break;
                                case "12":
                                    budgetBS.Add(p.Dec.ToString());
                                    break;
                                default:
                                    break;
                            }
                        }
                    }
                });
            }
            else
            {
                for (int i = 1; i <= m; i++)
                {
                    budgetBS.Add("0");
                }
            }

            Graph02_Day1.Text = budgetBS[0];
            Graph02_Day2.Text = budgetBS[1];
            Graph02_Day3.Text = budgetBS[2];
            Graph02_Day4.Text = budgetBS[3];
            Graph02_Day5.Text = budgetBS[4];
            Graph02_Day6.Text = budgetBS[5];
            Graph02_Day7.Text = budgetBS[6];
            Graph02_Day8.Text = budgetBS[7];
            Graph02_Day9.Text = budgetBS[8];
            Graph02_Day10.Text = budgetBS[9];
            Graph02_Day11.Text = budgetBS[10];
            Graph02_Day12.Text = budgetBS[11];
            Graph02_Day13.Text = budgetBS[12];

            int n = m + 1;
            int g = 1;
            for (int i = n; i <= 12; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, yearN_2, strMonth, "P_L");
                if (itemPL != null)
                {
                    switch (g.ToString())
                    {
                        case "1":
                            Graph03_Day1.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "2":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "3":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "4":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "5":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "6":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "7":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "8":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "9":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "10":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "11":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "12":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        default:
                            break;
                    }
                }
                g = g + 1;
            }
            for (int i = 1; i <= 12; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, yearN_1, strMonth, "P_L");
                if (itemPL != null)
                {
                    switch (g.ToString())
                    {
                        case "1":
                            Graph03_Day1.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "2":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "3":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "4":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "5":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "6":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "7":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "8":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "9":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "10":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "11":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "12":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "13":
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "14":
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "15":
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "16":
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "17":
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "18":
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "19":
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "20":
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "21":
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "22":
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "23":
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "24":
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        default:
                            break;
                    }
                }
                g = g + 1;
            }
            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, year, strMonth, "P_L");
                if (itemPL != null)
                {
                    switch (g.ToString())
                    {
                        case "1":
                            Graph03_Day1.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "2":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "3":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "4":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "5":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "6":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "7":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "8":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "9":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "10":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "11":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "12":
                            Graph03_Day1.Text = (Convert.ToDecimal(Graph03_Day1.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "13":
                            Graph03_Day2.Text = (Convert.ToDecimal(Graph03_Day2.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = itemPL["CM_PL02010000"].ToString();
                            break;
                        case "14":
                            Graph03_Day3.Text = (Convert.ToDecimal(Graph03_Day3.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "15":
                            Graph03_Day4.Text = (Convert.ToDecimal(Graph03_Day4.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "16":
                            Graph03_Day5.Text = (Convert.ToDecimal(Graph03_Day5.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "17":
                            Graph03_Day6.Text = (Convert.ToDecimal(Graph03_Day6.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "18":
                            Graph03_Day7.Text = (Convert.ToDecimal(Graph03_Day7.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "19":
                            Graph03_Day8.Text = (Convert.ToDecimal(Graph03_Day8.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "20":
                            Graph03_Day9.Text = (Convert.ToDecimal(Graph03_Day9.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "21":
                            Graph03_Day10.Text = (Convert.ToDecimal(Graph03_Day10.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "22":
                            Graph03_Day11.Text = (Convert.ToDecimal(Graph03_Day11.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "23":
                            Graph03_Day12.Text = (Convert.ToDecimal(Graph03_Day12.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        case "24":
                            Graph03_Day13.Text = (Convert.ToDecimal(Graph03_Day13.Text) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString())).ToString();
                            break;
                        default:
                            break;
                    }
                }
                g = g + 1;
            }

            if (Graph03_Day1.Text != "0" && Graph03_Day1.Text != "0.00")
            {
                Graph03_Day1.Text = ((Convert.ToDecimal(Graph01_Day1.Text) / Convert.ToDecimal(Graph03_Day1.Text))).ToString("n");
            }
            if (Graph03_Day2.Text != "0" && Graph03_Day2.Text != "0.00")
            {
                Graph03_Day2.Text = ((Convert.ToDecimal(Graph01_Day2.Text) / Convert.ToDecimal(Graph03_Day2.Text))).ToString("n");
            }
            if (Graph03_Day3.Text != "0" && Graph03_Day3.Text != "0.00")
            {
                Graph03_Day3.Text = ((Convert.ToDecimal(Graph01_Day3.Text) / Convert.ToDecimal(Graph03_Day3.Text))).ToString("n");
            }
            if (Graph03_Day4.Text != "0" && Graph03_Day4.Text != "0.00")
            {
                Graph03_Day4.Text = ((Convert.ToDecimal(Graph01_Day4.Text) / Convert.ToDecimal(Graph03_Day4.Text))).ToString("n");
            }
            if (Graph03_Day5.Text != "0" && Graph03_Day5.Text != "0.00")
            {
                Graph03_Day5.Text = ((Convert.ToDecimal(Graph01_Day5.Text) / Convert.ToDecimal(Graph03_Day5.Text))).ToString("n");
            }
            if (Graph03_Day6.Text != "0" && Graph03_Day6.Text != "0.00")
            {
                Graph03_Day6.Text = ((Convert.ToDecimal(Graph01_Day6.Text) / Convert.ToDecimal(Graph03_Day6.Text))).ToString("n");
            }
            if (Graph03_Day7.Text != "0" && Graph03_Day7.Text != "0.00")
            {
                Graph03_Day7.Text = ((Convert.ToDecimal(Graph01_Day7.Text) / Convert.ToDecimal(Graph03_Day7.Text))).ToString("n");
            }
            if (Graph03_Day8.Text != "0" && Graph03_Day8.Text != "0.00")
            {
                Graph03_Day8.Text = ((Convert.ToDecimal(Graph01_Day8.Text) / Convert.ToDecimal(Graph03_Day8.Text))).ToString("n");
            }
            if (Graph03_Day9.Text != "0" && Graph03_Day9.Text != "0.00")
            {
                Graph03_Day9.Text = ((Convert.ToDecimal(Graph01_Day9.Text) / Convert.ToDecimal(Graph03_Day9.Text))).ToString("n");
            }
            if (Graph03_Day10.Text != "0" && Graph03_Day10.Text != "0.00")
            {
                Graph03_Day10.Text = ((Convert.ToDecimal(Graph01_Day10.Text) / Convert.ToDecimal(Graph03_Day10.Text))).ToString("n");
            }
            if (Graph03_Day11.Text != "0" && Graph03_Day11.Text != "0.00")
            {
                Graph03_Day11.Text = ((Convert.ToDecimal(Graph01_Day11.Text) / Convert.ToDecimal(Graph03_Day11.Text))).ToString("n");
            }
            if (Graph03_Day12.Text != "0" && Graph03_Day12.Text != "0.00")
            {
                Graph03_Day12.Text = ((Convert.ToDecimal(Graph01_Day12.Text) / Convert.ToDecimal(Graph03_Day12.Text))).ToString("n");
            }
            if (Graph03_Day13.Text != "0" && Graph03_Day13.Text != "0.00")
            {
                Graph03_Day13.Text = ((Convert.ToDecimal(Graph01_Day13.Text) / Convert.ToDecimal(Graph03_Day13.Text))).ToString("n");
            }


            SPListItem itemFC = Common.BusinessService.GetItem(coCd, year, month, "Gross Fixed Cost");
            SPListItem itemNF = Common.BusinessService.GetItem(coCd, year, month, "Actual_NF2");
            SPListItem itemHR = Common.BusinessService.GetItem(coCd, year, month, "HR");
            SPListItem itemFCN_1 = Common.BusinessService.GetItem(coCd, yearN_1, month, "Gross Fixed Cost");
            SPListItem itemNFN_1 = Common.BusinessService.GetItem(coCd, yearN_1, month, "Actual_NF2");
            SPListItem itemHRN_1 = Common.BusinessService.GetItem(coCd, yearN_1, month, "HR");

            Label01_Day1.Text = "0";
            Label02_Day1.Text = "0";
            Label03_Day1.Text = "0";
            Label04_Day1.Text = "0";
            Label05_Day1.Text = "0";
            Label06_Day1.Text = "0";
            Label07_Day1.Text = "0";
            Label08_Day1.Text = "0";
            Label09_Day1.Text = "0";
            Label10_Day1.Text = "0";
            Label11_Day1.Text = "0";
            Label12_Day1.Text = "0";
            Label13_Day1.Text = "0";
            Label14_Day1.Text = "0";
            Label15_Day1.Text = "0";
            Label16_Day1.Text = "0";
            Label17_Day1.Text = "0";
            Label18_Day1.Text = "0";
            Label19_Day1.Text = "0";
            Label20_Day1.Text = "0";

            if (itemFCN_1 != null)
            {
                Label01_Day1.Text = itemFCN_1["CM_FC02010100"].ToString();
                Label02_Day1.Text = itemFCN_1["CM_FC02010101"].ToString();
                Label03_Day1.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["CM_FC02010102"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010103"].ToString()));
                Label04_Day1.Text = itemFCN_1["CM_FC02010104"].ToString();
                Label05_Day1.Text = itemFCN_1["CM_FC02010105"].ToString();
                Label06_Day1.Text = itemFCN_1["CM_FC02010106"].ToString();
                Label07_Day1.Text = itemFCN_1["CM_FC02010107"].ToString();
                Label08_Day1.Text = itemFCN_1["CM_FC02010200"].ToString();
                Label09_Day1.Text = itemFCN_1["CM_FC02010300"].ToString();
                Label10_Day1.Text = itemFCN_1["CM_FC02010400"].ToString();
                Label11_Day1.Text = itemFCN_1["CM_FC02010500"].ToString();
                Label12_Day1.Text = itemFCN_1["CM_FC02010000"].ToString();
            }
            if (itemHRN_1 != null)
            {
                Label14_Day1.Text = itemHRN_1["HR01020100"].ToString();
                Label15_Day1.Text = itemHRN_1["HR01020101"].ToString();
                Label16_Day1.Text = Convert.ToString(Convert.ToDecimal(itemHRN_1["HR01020102"].ToString()) + Convert.ToDecimal(itemHRN_1["HR01020103"].ToString()));
                Label17_Day1.Text = itemHRN_1["HR01020104"].ToString();
                Label18_Day1.Text = itemHRN_1["HR01020105"].ToString();
                Label19_Day1.Text = itemHRN_1["HR01020106"].ToString();
            }
            if (itemNFN_1 != null)
            {
                string billData = itemNFN_1["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentityAc> obj = Serializer.Deserialize<List<fsentityAc>>(billData);

                var objentity = obj as List<fsentityAc>;

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "NF02020100")
                    {
                        if (p.CM.ToString() == "0" || p.CM.ToString() == "0.00")
                        {
                            Label13_Day1.Text = "0";
                        }
                        else
                        {
                            Label13_Day1.Text = (Convert.ToDecimal(Label12_Day1.Text) / Convert.ToDecimal(p.CM.ToString())).ToString("n");
                        }

                        if (Label14_Day1.Text == "0" || Label14_Day1.Text == "0.00")
                        {
                            Label20_Day1.Text = "0";
                        }
                        else
                        {
                            Label20_Day1.Text = (Convert.ToDecimal(p.CM.ToString()) / Convert.ToDecimal(Label14_Day1.Text) * 1000).ToString("n");
                        }
                    }

                });
            }

            Label01_Day3.Text = "0";
            Label02_Day3.Text = "0";
            Label03_Day3.Text = "0";
            Label04_Day3.Text = "0";
            Label05_Day3.Text = "0";
            Label06_Day3.Text = "0";
            Label07_Day3.Text = "0";
            Label08_Day3.Text = "0";
            Label09_Day3.Text = "0";
            Label10_Day3.Text = "0";
            Label11_Day3.Text = "0";
            Label12_Day3.Text = "0";
            Label13_Day3.Text = "0";
            Label14_Day3.Text = "0";
            Label15_Day3.Text = "0";
            Label16_Day3.Text = "0";
            Label17_Day3.Text = "0";
            Label18_Day3.Text = "0";
            Label19_Day3.Text = "0";
            Label20_Day3.Text = "0";

            if (itemFC != null)
            {
                Label01_Day3.Text = itemFC["CM_FC02010100"].ToString();
                Label02_Day3.Text = itemFC["CM_FC02010101"].ToString();
                Label03_Day3.Text = Convert.ToString(Convert.ToDecimal(itemFC["CM_FC02010102"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010103"].ToString()));
                Label04_Day3.Text = itemFC["CM_FC02010104"].ToString();
                Label05_Day3.Text = itemFC["CM_FC02010105"].ToString();
                Label06_Day3.Text = itemFC["CM_FC02010106"].ToString();
                Label07_Day3.Text = itemFC["CM_FC02010107"].ToString();
                Label08_Day3.Text = itemFC["CM_FC02010200"].ToString();
                Label09_Day3.Text = itemFC["CM_FC02010300"].ToString();
                Label10_Day3.Text = itemFC["CM_FC02010400"].ToString();
                Label11_Day3.Text = itemFC["CM_FC02010500"].ToString();
                Label12_Day3.Text = itemFC["CM_FC02010000"].ToString();
            }
            if (itemHR != null)
            {
                Label14_Day3.Text = itemHR["HR01020100"].ToString();
                Label15_Day3.Text = itemHR["HR01020101"].ToString();
                Label16_Day3.Text = Convert.ToString(Convert.ToDecimal(itemHR["HR01020102"].ToString()) + Convert.ToDecimal(itemHR["HR01020103"].ToString()));
                Label17_Day3.Text = itemHR["HR01020104"].ToString();
                Label18_Day3.Text = itemHR["HR01020105"].ToString();
                Label19_Day3.Text = itemHR["HR01020106"].ToString();
            }
            if (itemNF != null)
            {
                string billData = itemNF["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentityAc> obj = Serializer.Deserialize<List<fsentityAc>>(billData);

                var objentity = obj as List<fsentityAc>;

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "NF02020100")
                    {
                        if (p.CM.ToString() == "0" || p.CM.ToString() == "0.00")
                        {
                            Label13_Day3.Text = "0";
                        }
                        else
                        {
                            Label13_Day3.Text = (Convert.ToDecimal(Label12_Day3.Text) / Convert.ToDecimal(p.CM.ToString())).ToString("n");
                        }

                        if (Label14_Day3.Text == "0" || Label14_Day3.Text == "0.00")
                        {
                            Label20_Day3.Text = "0";
                        }
                        else
                        {
                            Label20_Day3.Text = (Convert.ToDecimal(p.CM.ToString()) / Convert.ToDecimal(Label14_Day3.Text) * 1000).ToString("n");
                        }
                    }

                });
            }

            Label01_Day6.Text = "0";
            Label02_Day6.Text = "0";
            Label03_Day6.Text = "0";
            Label04_Day6.Text = "0";
            Label05_Day6.Text = "0";
            Label06_Day6.Text = "0";
            Label07_Day6.Text = "0";
            Label08_Day6.Text = "0";
            Label09_Day6.Text = "0";
            Label10_Day6.Text = "0";
            Label11_Day6.Text = "0";
            Label12_Day6.Text = "0";
            Label13_Day6.Text = "0";
            Label14_Day6.Text = "0";
            Label15_Day6.Text = "0";
            Label16_Day6.Text = "0";
            Label17_Day6.Text = "0";
            Label18_Day6.Text = "0";
            Label19_Day6.Text = "0";
            Label20_Day6.Text = "0";

            if (itemFCN_1 != null)
            {
                Label01_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010100"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010100"].ToString()));
                Label02_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010101"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010101"].ToString()));
                Label03_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010102"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010102"].ToString()) + Convert.ToDecimal(itemFCN_1["YTDM1_FC02010103"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010103"].ToString()));
                Label04_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010104"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010104"].ToString()));
                Label05_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010105"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010105"].ToString()));
                Label06_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010106"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010106"].ToString()));
                Label07_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010107"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010107"].ToString()));
                Label08_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010200"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010200"].ToString()));
                Label09_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010300"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010300"].ToString()));
                Label10_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010400"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010400"].ToString()));
                Label11_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010500"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010500"].ToString()));
                Label12_Day6.Text = Convert.ToString(Convert.ToDecimal(itemFCN_1["YTDM1_FC02010000"].ToString()) + Convert.ToDecimal(itemFCN_1["CM_FC02010000"].ToString()));

            }



            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemHRN_1YTD = Common.BusinessService.GetItem(coCd, yearN_1, strMonth, "HR");
                if (itemHRN_1YTD != null)
                {
                    Label14_Day6.Text = Convert.ToString(Convert.ToDecimal(Label14_Day6.Text) + Convert.ToDecimal(itemHRN_1YTD["HR01020100"].ToString()));
                    Label15_Day6.Text = Convert.ToString(Convert.ToDecimal(Label15_Day6.Text) + Convert.ToDecimal(itemHRN_1YTD["HR01020101"].ToString()));
                    Label16_Day6.Text = Convert.ToString(Convert.ToDecimal(Label16_Day6.Text) + Convert.ToDecimal(itemHRN_1YTD["HR01020102"].ToString()) + Convert.ToDecimal(itemHRN_1YTD["HR01020103"].ToString()));
                    Label17_Day6.Text = Convert.ToString(Convert.ToDecimal(Label17_Day6.Text) + Convert.ToDecimal(itemHRN_1YTD["HR01020104"].ToString()));
                    Label18_Day6.Text = Convert.ToString(Convert.ToDecimal(Label18_Day6.Text) + Convert.ToDecimal(itemHRN_1YTD["HR01020105"].ToString()));
                    Label19_Day6.Text = Convert.ToString(Convert.ToDecimal(Label19_Day6.Text) + Convert.ToDecimal(itemHRN_1YTD["HR01020106"].ToString()));
                }
            }
            Label14_Day6.Text = (Convert.ToDecimal(Label14_Day6.Text) / m).ToString("n");
            Label15_Day6.Text = (Convert.ToDecimal(Label15_Day6.Text) / m).ToString("n");
            Label16_Day6.Text = (Convert.ToDecimal(Label16_Day6.Text) / m).ToString("n");
            Label17_Day6.Text = (Convert.ToDecimal(Label17_Day6.Text) / m).ToString("n");
            Label18_Day6.Text = (Convert.ToDecimal(Label18_Day6.Text) / m).ToString("n");
            Label19_Day6.Text = (Convert.ToDecimal(Label19_Day6.Text) / m).ToString("n");

            if (itemNFN_1 != null)
            {
                string billData = itemNFN_1["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentityAc> obj = Serializer.Deserialize<List<fsentityAc>>(billData);

                var objentity = obj as List<fsentityAc>;

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "NF02020100")
                    {
                        if (p.CM.ToString() == "0" || p.CM.ToString() == "0.00")
                        {
                            Label13_Day6.Text = "0";
                        }
                        else
                        {
                            Label13_Day6.Text = (Convert.ToDecimal(Label12_Day6.Text) / Convert.ToDecimal(p.YTD.ToString())).ToString("n");
                        }

                        if (Label14_Day6.Text == "0" || Label14_Day6.Text == "0.00")
                        {
                            Label20_Day6.Text = "0";
                        }
                        else
                        {
                            Label20_Day6.Text = (Convert.ToDecimal(p.YTD.ToString()) / Convert.ToDecimal(Label14_Day6.Text) * 1000).ToString("n");
                        }
                    }

                });
            }

            Label01_Day8.Text = "0";
            Label02_Day8.Text = "0";
            Label03_Day8.Text = "0";
            Label04_Day8.Text = "0";
            Label05_Day8.Text = "0";
            Label06_Day8.Text = "0";
            Label07_Day8.Text = "0";
            Label08_Day8.Text = "0";
            Label09_Day8.Text = "0";
            Label10_Day8.Text = "0";
            Label11_Day8.Text = "0";
            Label12_Day8.Text = "0";
            Label13_Day8.Text = "0";
            Label14_Day8.Text = "0";
            Label15_Day8.Text = "0";
            Label16_Day8.Text = "0";
            Label17_Day8.Text = "0";
            Label18_Day8.Text = "0";
            Label19_Day8.Text = "0";
            Label20_Day8.Text = "0";

            if (itemFC != null)
            {
                Label01_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010100"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010100"].ToString()));
                Label02_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010101"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010101"].ToString()));
                Label03_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010102"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010102"].ToString()) + Convert.ToDecimal(itemFC["YTDM1_FC02010103"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010103"].ToString()));
                Label04_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010104"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010104"].ToString()));
                Label05_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010105"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010105"].ToString()));
                Label06_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010106"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010106"].ToString()));
                Label07_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010107"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010107"].ToString()));
                Label08_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010200"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010200"].ToString()));
                Label09_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010300"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010300"].ToString()));
                Label10_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010400"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010400"].ToString()));
                Label11_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010500"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010500"].ToString()));
                Label12_Day8.Text = Convert.ToString(Convert.ToDecimal(itemFC["YTDM1_FC02010000"].ToString()) + Convert.ToDecimal(itemFC["CM_FC02010000"].ToString()));

            }

            //int m = Convert.ToInt32(TopSelector.monthTextBox.Text);

            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemHRYTD = Common.BusinessService.GetItem(coCd, year, strMonth, "HR");
                if (itemHRYTD != null)
                {
                    Label14_Day8.Text = Convert.ToString(Convert.ToDecimal(Label14_Day8.Text) + Convert.ToDecimal(itemHRYTD["HR01020100"].ToString()));
                    Label15_Day8.Text = Convert.ToString(Convert.ToDecimal(Label15_Day8.Text) + Convert.ToDecimal(itemHRYTD["HR01020101"].ToString()));
                    Label16_Day8.Text = Convert.ToString(Convert.ToDecimal(Label16_Day8.Text) + Convert.ToDecimal(itemHRYTD["HR01020102"].ToString()) + Convert.ToDecimal(itemHRYTD["HR01020103"].ToString()));
                    Label17_Day8.Text = Convert.ToString(Convert.ToDecimal(Label17_Day8.Text) + Convert.ToDecimal(itemHRYTD["HR01020104"].ToString()));
                    Label18_Day8.Text = Convert.ToString(Convert.ToDecimal(Label18_Day8.Text) + Convert.ToDecimal(itemHRYTD["HR01020105"].ToString()));
                    Label19_Day8.Text = Convert.ToString(Convert.ToDecimal(Label19_Day8.Text) + Convert.ToDecimal(itemHRYTD["HR01020106"].ToString()));
                }
            }
            Label14_Day8.Text = (Convert.ToDecimal(Label14_Day8.Text) / m).ToString("n");
            Label15_Day8.Text = (Convert.ToDecimal(Label15_Day8.Text) / m).ToString("n");
            Label16_Day8.Text = (Convert.ToDecimal(Label16_Day8.Text) / m).ToString("n");
            Label17_Day8.Text = (Convert.ToDecimal(Label17_Day8.Text) / m).ToString("n");
            Label18_Day8.Text = (Convert.ToDecimal(Label18_Day8.Text) / m).ToString("n");
            Label19_Day8.Text = (Convert.ToDecimal(Label19_Day8.Text) / m).ToString("n");

            if (itemNF != null)
            {
                string billData = itemNF["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentityAc> obj = Serializer.Deserialize<List<fsentityAc>>(billData);

                var objentity = obj as List<fsentityAc>;

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "NF02020100")
                    {
                        if (p.CM.ToString() == "0" || p.CM.ToString() == "0.00")
                        {
                            Label13_Day8.Text = "0";
                        }
                        else
                        {
                            Label13_Day8.Text = (Convert.ToDecimal(Label12_Day8.Text) / Convert.ToDecimal(p.YTD.ToString())).ToString("n");
                        }

                        if (Label14_Day8.Text == "0" || Label14_Day8.Text == "0.00")
                        {
                            Label20_Day8.Text = "0";
                        }
                        else
                        {
                            Label20_Day8.Text = (Convert.ToDecimal(p.YTD.ToString()) / Convert.ToDecimal(Label14_Day8.Text) * 1000).ToString("n");
                        }
                    }

                });
            }

            Label01_Day2.Text = "0";
            Label02_Day2.Text = "0";
            Label03_Day2.Text = "0";
            Label04_Day2.Text = "0";
            Label05_Day2.Text = "0";
            Label06_Day2.Text = "0";
            Label07_Day2.Text = "0";
            Label08_Day2.Text = "0";
            Label09_Day2.Text = "0";
            Label10_Day2.Text = "0";
            Label11_Day2.Text = "0";
            Label12_Day2.Text = "0";
            Label13_Day2.Text = "0";
            Label14_Day2.Text = "0";
            Label15_Day2.Text = "0";
            Label16_Day2.Text = "0";
            Label17_Day2.Text = "0";
            Label18_Day2.Text = "0";
            Label19_Day2.Text = "0";
            Label20_Day2.Text = "0";

            Label01_Day7.Text = "0";
            Label02_Day7.Text = "0";
            Label03_Day7.Text = "0";
            Label04_Day7.Text = "0";
            Label05_Day7.Text = "0";
            Label06_Day7.Text = "0";
            Label07_Day7.Text = "0";
            Label08_Day7.Text = "0";
            Label09_Day7.Text = "0";
            Label10_Day7.Text = "0";
            Label11_Day7.Text = "0";
            Label12_Day7.Text = "0";
            Label13_Day7.Text = "0";
            Label14_Day7.Text = "0";
            Label15_Day7.Text = "0";
            Label16_Day7.Text = "0";
            Label17_Day7.Text = "0";
            Label18_Day7.Text = "0";
            Label19_Day7.Text = "0";
            Label20_Day7.Text = "0";

            SPListItem itemBudgetNF = Common.BusinessService.GetBudgetItem(coCd, year, "Budget_NF2");
            SPListItem itemBudgetHR = Common.BusinessService.GetBudgetItem(coCd, year, "Budget_HR");
            SPListItem itemBudgetFC = Common.BusinessService.GetBudgetItem(coCd, year, "Budget_GRFC");

            if (itemBudgetFC != null)
            {
                string billData = itemBudgetFC["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

                var objentity = obj as List<fsentity>;

                string FC03010102 = "0";
                string FC03010103 = "0";
                string FC03010102YTD = "0";
                string FC03010103YTD = "0";

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "FC03010100")
                    {
                        switch (month)
                        {
                            case "1":
                                Label01_Day2.Text = p.Jan.ToString();
                                Label01_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label01_Day2.Text = p.Feb.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label01_Day2.Text = p.Mar.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label01_Day2.Text = p.Apr.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label01_Day2.Text = p.May.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label01_Day2.Text = p.Jun.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label01_Day2.Text = p.Jul.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label01_Day2.Text = p.Aug.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label01_Day2.Text = p.Sep.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label01_Day2.Text = p.Oct.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label01_Day2.Text = p.Nov.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label01_Day2.Text = p.Dec.ToString();
                                Label01_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010101")
                    {
                        switch (month)
                        {
                            case "1":
                                Label02_Day2.Text = p.Jan.ToString();
                                Label02_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label02_Day2.Text = p.Feb.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label02_Day2.Text = p.Mar.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label02_Day2.Text = p.Apr.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label02_Day2.Text = p.May.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label02_Day2.Text = p.Jun.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label02_Day2.Text = p.Jul.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label02_Day2.Text = p.Aug.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label02_Day2.Text = p.Sep.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label02_Day2.Text = p.Oct.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label02_Day2.Text = p.Nov.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label02_Day2.Text = p.Dec.ToString();
                                Label02_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010102")
                    {
                        switch (month)
                        {
                            case "1":
                                FC03010102 = p.Jan.ToString();
                                FC03010102YTD = p.Jan.ToString();
                                break;
                            case "2":
                                FC03010102 = p.Feb.ToString();
                                FC03010102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                FC03010102 = p.Mar.ToString();
                                FC03010102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                FC03010102 = p.Apr.ToString();
                                FC03010102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                FC03010102 = p.May.ToString();
                                FC03010102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                FC03010102 = p.Jun.ToString();
                                FC03010102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                FC03010102 = p.Jul.ToString();
                                FC03010102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                FC03010102 = p.Aug.ToString();
                                FC03010102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                FC03010102 = p.Sep.ToString();
                                FC03010102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                FC03010102 = p.Oct.ToString();
                                FC03010102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                FC03010102 = p.Nov.ToString();
                                FC03010102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                FC03010102 = p.Dec.ToString();
                                FC03010102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010103")
                    {
                        switch (month)
                        {
                            case "1":
                                FC03010103 = p.Jan.ToString();
                                FC03010103YTD = p.Jan.ToString();
                                break;
                            case "2":
                                FC03010103 = p.Feb.ToString();
                                FC03010103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                FC03010103 = p.Mar.ToString();
                                FC03010103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                FC03010103 = p.Apr.ToString();
                                FC03010103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                FC03010103 = p.May.ToString();
                                FC03010103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                FC03010103 = p.Jun.ToString();
                                FC03010103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                FC03010103 = p.Jul.ToString();
                                FC03010103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                FC03010103 = p.Aug.ToString();
                                FC03010103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                FC03010103 = p.Sep.ToString();
                                FC03010103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                FC03010103 = p.Oct.ToString();
                                FC03010103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                FC03010103 = p.Nov.ToString();
                                FC03010103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                FC03010103 = p.Dec.ToString();
                                FC03010103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010104")
                    {
                        switch (month)
                        {
                            case "1":
                                Label04_Day2.Text = p.Jan.ToString();
                                Label04_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label04_Day2.Text = p.Feb.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label04_Day2.Text = p.Mar.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label04_Day2.Text = p.Apr.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label04_Day2.Text = p.May.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label04_Day2.Text = p.Jun.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label04_Day2.Text = p.Jul.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label04_Day2.Text = p.Aug.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label04_Day2.Text = p.Sep.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label04_Day2.Text = p.Oct.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label04_Day2.Text = p.Nov.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label04_Day2.Text = p.Dec.ToString();
                                Label04_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010105")
                    {
                        switch (month)
                        {
                            case "1":
                                Label05_Day2.Text = p.Jan.ToString();
                                Label05_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label05_Day2.Text = p.Feb.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label05_Day2.Text = p.Mar.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label05_Day2.Text = p.Apr.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label05_Day2.Text = p.May.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label05_Day2.Text = p.Jun.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label05_Day2.Text = p.Jul.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label05_Day2.Text = p.Aug.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label05_Day2.Text = p.Sep.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label05_Day2.Text = p.Oct.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label05_Day2.Text = p.Nov.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label05_Day2.Text = p.Dec.ToString();
                                Label05_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010106")
                    {
                        switch (month)
                        {
                            case "1":
                                Label06_Day2.Text = p.Jan.ToString();
                                Label06_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label06_Day2.Text = p.Feb.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label06_Day2.Text = p.Mar.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label06_Day2.Text = p.Apr.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label06_Day2.Text = p.May.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label06_Day2.Text = p.Jun.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label06_Day2.Text = p.Jul.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label06_Day2.Text = p.Aug.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label06_Day2.Text = p.Sep.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label06_Day2.Text = p.Oct.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label06_Day2.Text = p.Nov.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label06_Day2.Text = p.Dec.ToString();
                                Label06_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010107")
                    {
                        switch (month)
                        {
                            case "1":
                                Label07_Day2.Text = p.Jan.ToString();
                                Label07_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label07_Day2.Text = p.Feb.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label07_Day2.Text = p.Mar.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label07_Day2.Text = p.Apr.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label07_Day2.Text = p.May.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label07_Day2.Text = p.Jun.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label07_Day2.Text = p.Jul.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label07_Day2.Text = p.Aug.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label07_Day2.Text = p.Sep.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label07_Day2.Text = p.Oct.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label07_Day2.Text = p.Nov.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label07_Day2.Text = p.Dec.ToString();
                                Label07_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010200")
                    {
                        switch (month)
                        {
                            case "1":
                                Label08_Day2.Text = p.Jan.ToString();
                                Label08_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label08_Day2.Text = p.Feb.ToString();
                                Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label08_Day2.Text = p.Mar.ToString();
                                Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label08_Day2.Text = p.Apr.ToString();
                                Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label08_Day2.Text = p.May.ToString();
                                Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label08_Day2.Text = p.Jun.ToString();
                                Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label08_Day2.Text = p.Jul.ToString();
                                Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label08_Day2.Text = p.Aug.ToString();
                                Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label08_Day2.Text = p.Sep.ToString();
                                Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label08_Day2.Text = p.Oct.ToString();
                                Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label08_Day2.Text = p.Nov.ToString();
                                Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label08_Day2.Text = p.Dec.ToString();
                                Label08_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010300")
                    {
                        switch (month)
                        {
                            case "1":
                                Label09_Day2.Text = p.Jan.ToString();
                                Label09_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label09_Day2.Text = p.Feb.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label09_Day2.Text = p.Mar.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label09_Day2.Text = p.Apr.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label09_Day2.Text = p.May.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label09_Day2.Text = p.Jun.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label09_Day2.Text = p.Jul.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label09_Day2.Text = p.Aug.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label09_Day2.Text = p.Sep.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label09_Day2.Text = p.Oct.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label09_Day2.Text = p.Nov.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label09_Day2.Text = p.Dec.ToString();
                                Label09_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }

                    if (p.accountcode == "FC03010400")
                    {
                        switch (month)
                        {
                            case "1":
                                Label10_Day2.Text = p.Jan.ToString();
                                Label10_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label10_Day2.Text = p.Feb.ToString();
                                Label10_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label10_Day2.Text = p.Mar.ToString();
                                Label10_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label10_Day2.Text = p.Apr.ToString();
                                Label10_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label10_Day2.Text = p.May.ToString();
                                Label10_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label10_Day2.Text = p.Jun.ToString();
                                Label10_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label10_Day2.Text = p.Jul.ToString();
                                Label10_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label10_Day2.Text = p.Aug.ToString();
                                Label10_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label10_Day2.Text = p.Sep.ToString();
                                Label10_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label10_Day2.Text = p.Oct.ToString();
                                Label10_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label10_Day2.Text = p.Nov.ToString();
                                Label10_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label10_Day2.Text = p.Dec.ToString();
                                Label10_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }

                    if (p.accountcode == "FC03010500")
                    {
                        switch (month)
                        {
                            case "1":
                                Label11_Day2.Text = p.Jan.ToString();
                                Label11_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label11_Day2.Text = p.Feb.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label11_Day2.Text = p.Mar.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label11_Day2.Text = p.Apr.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label11_Day2.Text = p.May.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label11_Day2.Text = p.Jun.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label11_Day2.Text = p.Jul.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label11_Day2.Text = p.Aug.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label11_Day2.Text = p.Sep.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label11_Day2.Text = p.Oct.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label11_Day2.Text = p.Nov.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label11_Day2.Text = p.Dec.ToString();
                                Label11_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "FC03010000")
                    {
                        switch (month)
                        {
                            case "1":
                                Label12_Day2.Text = p.Jan.ToString();
                                Label12_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label12_Day2.Text = p.Feb.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label12_Day2.Text = p.Mar.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label12_Day2.Text = p.Apr.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label12_Day2.Text = p.May.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label12_Day2.Text = p.Jun.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label12_Day2.Text = p.Jul.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label12_Day2.Text = p.Aug.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label12_Day2.Text = p.Sep.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label12_Day2.Text = p.Oct.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label12_Day2.Text = p.Nov.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label12_Day2.Text = p.Dec.ToString();
                                Label12_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }

                });

                Label03_Day2.Text = Convert.ToString(Convert.ToDecimal(FC03010102) + Convert.ToDecimal(FC03010103));
                Label03_Day7.Text = Convert.ToString(Convert.ToDecimal(FC03010102YTD) + Convert.ToDecimal(FC03010103YTD));
            }

            if (itemBudgetHR != null)
            {
                string billData = itemBudgetHR["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

                var objentity = obj as List<fsentity>;

                string HR03020102 = "0";
                string HR03020103 = "0";
                string HR03020102YTD = "0";
                string HR03020103YTD = "0";

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "HR03020100")
                    {
                        switch (month)
                        {
                            case "1":
                                Label14_Day2.Text = p.Jan.ToString();
                                Label14_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label14_Day2.Text = p.Feb.ToString();
                                Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label14_Day2.Text = p.Mar.ToString();
                                Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label14_Day2.Text = p.Apr.ToString();
                                Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label14_Day2.Text = p.May.ToString();
                                Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label14_Day2.Text = p.Jun.ToString();
                                Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label14_Day2.Text = p.Jul.ToString();
                                Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label14_Day2.Text = p.Aug.ToString();
                                Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label14_Day2.Text = p.Sep.ToString();
                                Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label14_Day2.Text = p.Oct.ToString();
                                Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label14_Day2.Text = p.Nov.ToString();
                                Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label14_Day2.Text = p.Dec.ToString();
                                Label14_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "HR03020101")
                    {
                        switch (month)
                        {
                            case "1":
                                Label15_Day2.Text = p.Jan.ToString();
                                Label15_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label15_Day2.Text = p.Feb.ToString();
                                Label15_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label15_Day2.Text = p.Mar.ToString();
                                Label15_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label15_Day2.Text = p.Apr.ToString();
                                Label15_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label15_Day2.Text = p.May.ToString();
                                Label15_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label15_Day2.Text = p.Jun.ToString();
                                Label15_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label15_Day2.Text = p.Jul.ToString();
                                Label15_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label15_Day2.Text = p.Aug.ToString();
                                Label15_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label15_Day2.Text = p.Sep.ToString();
                                Label15_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label15_Day2.Text = p.Oct.ToString();
                                Label15_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label15_Day2.Text = p.Nov.ToString();
                                Label15_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label15_Day2.Text = p.Dec.ToString();
                                Label15_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "HR03020102")
                    {
                        switch (month)
                        {
                            case "1":
                                HR03020102 = p.Jan.ToString();
                                HR03020102YTD = p.Jan.ToString();
                                break;
                            case "2":
                                HR03020102 = p.Feb.ToString();
                                HR03020102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                HR03020102 = p.Mar.ToString();
                                HR03020102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                HR03020102 = p.Apr.ToString();
                                HR03020102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                HR03020102 = p.May.ToString();
                                HR03020102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                HR03020102 = p.Jun.ToString();
                                HR03020102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                HR03020102 = p.Jul.ToString();
                                HR03020102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                HR03020102 = p.Aug.ToString();
                                HR03020102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                HR03020102 = p.Sep.ToString();
                                HR03020102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                HR03020102 = p.Oct.ToString();
                                HR03020102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                HR03020102 = p.Nov.ToString();
                                HR03020102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                HR03020102 = p.Dec.ToString();
                                HR03020102YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "HR03020103")
                    {
                        switch (month)
                        {
                            case "1":
                                HR03020103 = p.Jan.ToString();
                                HR03020103YTD = p.Jan.ToString();
                                break;
                            case "2":
                                HR03020103 = p.Feb.ToString();
                                HR03020103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                HR03020103 = p.Mar.ToString();
                                HR03020103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                HR03020103 = p.Apr.ToString();
                                HR03020103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                HR03020103 = p.May.ToString();
                                HR03020103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                HR03020103 = p.Jun.ToString();
                                HR03020103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                HR03020103 = p.Jul.ToString();
                                HR03020103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                HR03020103 = p.Aug.ToString();
                                HR03020103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                HR03020103 = p.Sep.ToString();
                                HR03020103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                HR03020103 = p.Oct.ToString();
                                HR03020103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                HR03020103 = p.Nov.ToString();
                                HR03020103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                HR03020103 = p.Dec.ToString();
                                HR03020103YTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "HR03020104")
                    {
                        switch (month)
                        {
                            case "1":
                                Label17_Day2.Text = p.Jan.ToString();
                                Label17_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label17_Day2.Text = p.Feb.ToString();
                                Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label17_Day2.Text = p.Mar.ToString();
                                Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label17_Day2.Text = p.Apr.ToString();
                                Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label17_Day2.Text = p.May.ToString();
                                Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label17_Day2.Text = p.Jun.ToString();
                                Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label17_Day2.Text = p.Jul.ToString();
                                Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label17_Day2.Text = p.Aug.ToString();
                                Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label17_Day2.Text = p.Sep.ToString();
                                Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label17_Day2.Text = p.Oct.ToString();
                                Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label17_Day2.Text = p.Nov.ToString();
                                Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label17_Day2.Text = p.Dec.ToString();
                                Label17_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "HR03020105")
                    {
                        switch (month)
                        {
                            case "1":
                                Label18_Day2.Text = p.Jan.ToString();
                                Label18_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label18_Day2.Text = p.Feb.ToString();
                                Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label18_Day2.Text = p.Mar.ToString();
                                Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label18_Day2.Text = p.Apr.ToString();
                                Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label18_Day2.Text = p.May.ToString();
                                Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label18_Day2.Text = p.Jun.ToString();
                                Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label18_Day2.Text = p.Jul.ToString();
                                Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label18_Day2.Text = p.Aug.ToString();
                                Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label18_Day2.Text = p.Sep.ToString();
                                Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label18_Day2.Text = p.Oct.ToString();
                                Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label18_Day2.Text = p.Nov.ToString();
                                Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label18_Day2.Text = p.Dec.ToString();
                                Label18_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                    if (p.accountcode == "HR03020106")
                    {
                        switch (month)
                        {
                            case "1":
                                Label19_Day2.Text = p.Jan.ToString();
                                Label19_Day7.Text = p.Jan.ToString();
                                break;
                            case "2":
                                Label19_Day2.Text = p.Feb.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                Label19_Day2.Text = p.Mar.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                Label19_Day2.Text = p.Apr.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                Label19_Day2.Text = p.May.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                Label19_Day2.Text = p.Jun.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                Label19_Day2.Text = p.Jul.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                Label19_Day2.Text = p.Aug.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                Label19_Day2.Text = p.Sep.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                Label19_Day2.Text = p.Oct.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                Label19_Day2.Text = p.Nov.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                Label19_Day2.Text = p.Dec.ToString();
                                Label19_Day7.Text = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }

                });

                Label16_Day2.Text = Convert.ToString(Convert.ToDecimal(HR03020102) + Convert.ToDecimal(HR03020103));
                Label16_Day7.Text = Convert.ToString(Convert.ToDecimal(HR03020102YTD) + Convert.ToDecimal(HR03020103YTD));
            }
            Label14_Day7.Text = (Convert.ToDecimal(Label14_Day7.Text) / m).ToString("n");
            Label15_Day7.Text = (Convert.ToDecimal(Label15_Day7.Text) / m).ToString("n");
            Label16_Day7.Text = (Convert.ToDecimal(Label16_Day7.Text) / m).ToString("n");
            Label17_Day7.Text = (Convert.ToDecimal(Label17_Day7.Text) / m).ToString("n");
            Label18_Day7.Text = (Convert.ToDecimal(Label18_Day7.Text) / m).ToString("n");
            Label19_Day7.Text = (Convert.ToDecimal(Label19_Day7.Text) / m).ToString("n");

            if (itemBudgetNF != null)
            {
                string billData = itemBudgetNF["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

                var objentity = obj as List<fsentity>;

                string TonnagesHead = "0";
                string TonnagesHeadYTD = "0";

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "NF03020100")
                    {
                        switch (month)
                        {
                            case "1":
                                TonnagesHead = p.Jan.ToString();
                                TonnagesHeadYTD = p.Jan.ToString();
                                break;
                            case "2":
                                TonnagesHead = p.Feb.ToString();
                                TonnagesHeadYTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()));
                                break;
                            case "3":
                                TonnagesHead = p.Mar.ToString();
                                TonnagesHeadYTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()));
                                break;
                            case "4":
                                TonnagesHead = p.Apr.ToString();
                                TonnagesHeadYTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()));
                                break;
                            case "5":
                                TonnagesHead = p.May.ToString();
                                TonnagesHeadYTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()));
                                break;
                            case "6":
                                TonnagesHead = p.Jun.ToString();
                                TonnagesHeadYTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()));
                                break;
                            case "7":
                                TonnagesHead = p.Jul.ToString();
                                TonnagesHeadYTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()));
                                break;
                            case "8":
                                TonnagesHead = p.Aug.ToString();
                                TonnagesHeadYTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()));
                                break;
                            case "9":
                                TonnagesHead = p.Sep.ToString();
                                TonnagesHeadYTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()));
                                break;
                            case "10":
                                TonnagesHead = p.Oct.ToString();
                                TonnagesHeadYTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()));
                                break;
                            case "11":
                                TonnagesHead = p.Nov.ToString();
                                TonnagesHeadYTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()));
                                break;
                            case "12":
                                TonnagesHead = p.Dec.ToString();
                                TonnagesHeadYTD = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                                break;
                            default:
                                break;
                        }
                    }
                });

                if (TonnagesHead != "0" && TonnagesHead != "0.00")
                {
                    Label13_Day2.Text = (Convert.ToDecimal(Label12_Day2.Text) / Convert.ToDecimal(TonnagesHead)).ToString("n");

                }
                if (Label14_Day2.Text != "0" && Label14_Day2.Text != "0.00")
                {

                    Label20_Day2.Text = (Convert.ToDecimal(TonnagesHead) / Convert.ToDecimal(Label14_Day2.Text) * 1000).ToString("n");
                }

                if (TonnagesHeadYTD != "0" && TonnagesHeadYTD != "0.00")
                {
                    Label13_Day7.Text = (Convert.ToDecimal(Label12_Day7.Text) / Convert.ToDecimal(TonnagesHeadYTD)).ToString("n");

                }
                if (Label14_Day7.Text != "0" && Label14_Day7.Text != "0.00")
                {

                    Label20_Day7.Text = (Convert.ToDecimal(TonnagesHeadYTD) / Convert.ToDecimal(Label14_Day7.Text) * 1000).ToString("n");
                }
            }

            Label01_Day4.Text = Convert.ToString(Convert.ToDecimal(Label01_Day3.Text) - Convert.ToDecimal(Label01_Day2.Text));
            Label02_Day4.Text = Convert.ToString(Convert.ToDecimal(Label02_Day3.Text) - Convert.ToDecimal(Label02_Day2.Text));
            Label03_Day4.Text = Convert.ToString(Convert.ToDecimal(Label03_Day3.Text) - Convert.ToDecimal(Label03_Day2.Text));
            Label04_Day4.Text = Convert.ToString(Convert.ToDecimal(Label04_Day3.Text) - Convert.ToDecimal(Label04_Day2.Text));
            Label05_Day4.Text = Convert.ToString(Convert.ToDecimal(Label05_Day3.Text) - Convert.ToDecimal(Label05_Day2.Text));
            Label06_Day4.Text = Convert.ToString(Convert.ToDecimal(Label06_Day3.Text) - Convert.ToDecimal(Label06_Day2.Text));
            Label07_Day4.Text = Convert.ToString(Convert.ToDecimal(Label07_Day3.Text) - Convert.ToDecimal(Label07_Day2.Text));
            Label08_Day4.Text = Convert.ToString(Convert.ToDecimal(Label08_Day3.Text) - Convert.ToDecimal(Label08_Day2.Text));
            Label09_Day4.Text = Convert.ToString(Convert.ToDecimal(Label09_Day3.Text) - Convert.ToDecimal(Label09_Day2.Text));
            Label10_Day4.Text = Convert.ToString(Convert.ToDecimal(Label10_Day3.Text) - Convert.ToDecimal(Label10_Day2.Text));
            Label11_Day4.Text = Convert.ToString(Convert.ToDecimal(Label11_Day3.Text) - Convert.ToDecimal(Label11_Day2.Text));
            Label12_Day4.Text = Convert.ToString(Convert.ToDecimal(Label12_Day3.Text) - Convert.ToDecimal(Label12_Day2.Text));
            Label13_Day4.Text = Convert.ToString(Convert.ToDecimal(Label13_Day3.Text) - Convert.ToDecimal(Label13_Day2.Text));
            Label14_Day4.Text = Convert.ToString(Convert.ToDecimal(Label14_Day3.Text) - Convert.ToDecimal(Label14_Day2.Text));
            Label15_Day4.Text = Convert.ToString(Convert.ToDecimal(Label15_Day3.Text) - Convert.ToDecimal(Label15_Day2.Text));
            Label16_Day4.Text = Convert.ToString(Convert.ToDecimal(Label16_Day3.Text) - Convert.ToDecimal(Label16_Day2.Text));
            Label17_Day4.Text = Convert.ToString(Convert.ToDecimal(Label17_Day3.Text) - Convert.ToDecimal(Label17_Day2.Text));
            Label18_Day4.Text = Convert.ToString(Convert.ToDecimal(Label18_Day3.Text) - Convert.ToDecimal(Label18_Day2.Text));
            Label19_Day4.Text = Convert.ToString(Convert.ToDecimal(Label19_Day3.Text) - Convert.ToDecimal(Label19_Day2.Text));
            Label20_Day4.Text = Convert.ToString(Convert.ToDecimal(Label20_Day3.Text) - Convert.ToDecimal(Label20_Day2.Text));

            Label01_Day5.Text = Convert.ToString(Convert.ToDecimal(Label01_Day3.Text) - Convert.ToDecimal(Label01_Day1.Text));
            Label02_Day5.Text = Convert.ToString(Convert.ToDecimal(Label02_Day3.Text) - Convert.ToDecimal(Label02_Day1.Text));
            Label03_Day5.Text = Convert.ToString(Convert.ToDecimal(Label03_Day3.Text) - Convert.ToDecimal(Label03_Day1.Text));
            Label04_Day5.Text = Convert.ToString(Convert.ToDecimal(Label04_Day3.Text) - Convert.ToDecimal(Label04_Day1.Text));
            Label05_Day5.Text = Convert.ToString(Convert.ToDecimal(Label05_Day3.Text) - Convert.ToDecimal(Label05_Day1.Text));
            Label06_Day5.Text = Convert.ToString(Convert.ToDecimal(Label06_Day3.Text) - Convert.ToDecimal(Label06_Day1.Text));
            Label07_Day5.Text = Convert.ToString(Convert.ToDecimal(Label07_Day3.Text) - Convert.ToDecimal(Label07_Day1.Text));
            Label08_Day5.Text = Convert.ToString(Convert.ToDecimal(Label08_Day3.Text) - Convert.ToDecimal(Label08_Day1.Text));
            Label09_Day5.Text = Convert.ToString(Convert.ToDecimal(Label09_Day3.Text) - Convert.ToDecimal(Label09_Day1.Text));
            Label10_Day5.Text = Convert.ToString(Convert.ToDecimal(Label10_Day3.Text) - Convert.ToDecimal(Label10_Day1.Text));
            Label11_Day5.Text = Convert.ToString(Convert.ToDecimal(Label11_Day3.Text) - Convert.ToDecimal(Label11_Day1.Text));
            Label12_Day5.Text = Convert.ToString(Convert.ToDecimal(Label12_Day3.Text) - Convert.ToDecimal(Label12_Day1.Text));
            Label13_Day5.Text = Convert.ToString(Convert.ToDecimal(Label13_Day3.Text) - Convert.ToDecimal(Label13_Day1.Text));
            Label14_Day5.Text = Convert.ToString(Convert.ToDecimal(Label14_Day3.Text) - Convert.ToDecimal(Label14_Day1.Text));
            Label15_Day5.Text = Convert.ToString(Convert.ToDecimal(Label15_Day3.Text) - Convert.ToDecimal(Label15_Day1.Text));
            Label16_Day5.Text = Convert.ToString(Convert.ToDecimal(Label16_Day3.Text) - Convert.ToDecimal(Label16_Day1.Text));
            Label17_Day5.Text = Convert.ToString(Convert.ToDecimal(Label17_Day3.Text) - Convert.ToDecimal(Label17_Day1.Text));
            Label18_Day5.Text = Convert.ToString(Convert.ToDecimal(Label18_Day3.Text) - Convert.ToDecimal(Label18_Day1.Text));
            Label19_Day5.Text = Convert.ToString(Convert.ToDecimal(Label19_Day3.Text) - Convert.ToDecimal(Label19_Day1.Text));
            Label20_Day5.Text = Convert.ToString(Convert.ToDecimal(Label20_Day3.Text) - Convert.ToDecimal(Label20_Day1.Text));

            Label01_Day9.Text = Convert.ToString(Convert.ToDecimal(Label01_Day8.Text) - Convert.ToDecimal(Label01_Day7.Text));
            Label02_Day9.Text = Convert.ToString(Convert.ToDecimal(Label02_Day8.Text) - Convert.ToDecimal(Label02_Day7.Text));
            Label03_Day9.Text = Convert.ToString(Convert.ToDecimal(Label03_Day8.Text) - Convert.ToDecimal(Label03_Day7.Text));
            Label04_Day9.Text = Convert.ToString(Convert.ToDecimal(Label04_Day8.Text) - Convert.ToDecimal(Label04_Day7.Text));
            Label05_Day9.Text = Convert.ToString(Convert.ToDecimal(Label05_Day8.Text) - Convert.ToDecimal(Label05_Day7.Text));
            Label06_Day9.Text = Convert.ToString(Convert.ToDecimal(Label06_Day8.Text) - Convert.ToDecimal(Label06_Day7.Text));
            Label07_Day9.Text = Convert.ToString(Convert.ToDecimal(Label07_Day8.Text) - Convert.ToDecimal(Label07_Day7.Text));
            Label08_Day9.Text = Convert.ToString(Convert.ToDecimal(Label08_Day8.Text) - Convert.ToDecimal(Label08_Day7.Text));
            Label09_Day9.Text = Convert.ToString(Convert.ToDecimal(Label09_Day8.Text) - Convert.ToDecimal(Label09_Day7.Text));
            Label10_Day9.Text = Convert.ToString(Convert.ToDecimal(Label10_Day8.Text) - Convert.ToDecimal(Label10_Day7.Text));
            Label11_Day9.Text = Convert.ToString(Convert.ToDecimal(Label11_Day8.Text) - Convert.ToDecimal(Label11_Day7.Text));
            Label12_Day9.Text = Convert.ToString(Convert.ToDecimal(Label12_Day8.Text) - Convert.ToDecimal(Label12_Day7.Text));
            Label13_Day9.Text = Convert.ToString(Convert.ToDecimal(Label13_Day8.Text) - Convert.ToDecimal(Label13_Day7.Text));
            Label14_Day9.Text = Convert.ToString(Convert.ToDecimal(Label14_Day8.Text) - Convert.ToDecimal(Label14_Day7.Text));
            Label15_Day9.Text = Convert.ToString(Convert.ToDecimal(Label15_Day8.Text) - Convert.ToDecimal(Label15_Day7.Text));
            Label16_Day9.Text = Convert.ToString(Convert.ToDecimal(Label16_Day8.Text) - Convert.ToDecimal(Label16_Day7.Text));
            Label17_Day9.Text = Convert.ToString(Convert.ToDecimal(Label17_Day8.Text) - Convert.ToDecimal(Label17_Day7.Text));
            Label18_Day9.Text = Convert.ToString(Convert.ToDecimal(Label18_Day8.Text) - Convert.ToDecimal(Label18_Day7.Text));
            Label19_Day9.Text = Convert.ToString(Convert.ToDecimal(Label19_Day8.Text) - Convert.ToDecimal(Label19_Day7.Text));
            Label20_Day9.Text = Convert.ToString(Convert.ToDecimal(Label20_Day8.Text) - Convert.ToDecimal(Label20_Day7.Text));

            Label01_Day10.Text = Convert.ToString(Convert.ToDecimal(Label01_Day8.Text) - Convert.ToDecimal(Label01_Day6.Text));
            Label02_Day10.Text = Convert.ToString(Convert.ToDecimal(Label02_Day8.Text) - Convert.ToDecimal(Label02_Day6.Text));
            Label03_Day10.Text = Convert.ToString(Convert.ToDecimal(Label03_Day8.Text) - Convert.ToDecimal(Label03_Day6.Text));
            Label04_Day10.Text = Convert.ToString(Convert.ToDecimal(Label04_Day8.Text) - Convert.ToDecimal(Label04_Day6.Text));
            Label05_Day10.Text = Convert.ToString(Convert.ToDecimal(Label05_Day8.Text) - Convert.ToDecimal(Label05_Day6.Text));
            Label06_Day10.Text = Convert.ToString(Convert.ToDecimal(Label06_Day8.Text) - Convert.ToDecimal(Label06_Day6.Text));
            Label07_Day10.Text = Convert.ToString(Convert.ToDecimal(Label07_Day8.Text) - Convert.ToDecimal(Label07_Day6.Text));
            Label08_Day10.Text = Convert.ToString(Convert.ToDecimal(Label08_Day8.Text) - Convert.ToDecimal(Label08_Day6.Text));
            Label09_Day10.Text = Convert.ToString(Convert.ToDecimal(Label09_Day8.Text) - Convert.ToDecimal(Label09_Day6.Text));
            Label10_Day10.Text = Convert.ToString(Convert.ToDecimal(Label10_Day8.Text) - Convert.ToDecimal(Label10_Day6.Text));
            Label11_Day10.Text = Convert.ToString(Convert.ToDecimal(Label11_Day8.Text) - Convert.ToDecimal(Label11_Day6.Text));
            Label12_Day10.Text = Convert.ToString(Convert.ToDecimal(Label12_Day8.Text) - Convert.ToDecimal(Label12_Day6.Text));
            Label13_Day10.Text = Convert.ToString(Convert.ToDecimal(Label13_Day8.Text) - Convert.ToDecimal(Label13_Day6.Text));
            Label14_Day10.Text = Convert.ToString(Convert.ToDecimal(Label14_Day8.Text) - Convert.ToDecimal(Label14_Day6.Text));
            Label15_Day10.Text = Convert.ToString(Convert.ToDecimal(Label15_Day8.Text) - Convert.ToDecimal(Label15_Day6.Text));
            Label16_Day10.Text = Convert.ToString(Convert.ToDecimal(Label16_Day8.Text) - Convert.ToDecimal(Label16_Day6.Text));
            Label17_Day10.Text = Convert.ToString(Convert.ToDecimal(Label17_Day8.Text) - Convert.ToDecimal(Label17_Day6.Text));
            Label18_Day10.Text = Convert.ToString(Convert.ToDecimal(Label18_Day8.Text) - Convert.ToDecimal(Label18_Day6.Text));
            Label19_Day10.Text = Convert.ToString(Convert.ToDecimal(Label19_Day8.Text) - Convert.ToDecimal(Label19_Day6.Text));
            Label20_Day10.Text = Convert.ToString(Convert.ToDecimal(Label20_Day8.Text) - Convert.ToDecimal(Label20_Day6.Text));


            string CurrMthDays = Common.BusinessService.GetMthDays(month, year);
            string CurrMthDaysN_1 = Common.BusinessService.GetMthDays(month, yearN_1);

            LabelTitile01.Text = LabelTitile00.Text;
            LabelCurrMonY1.Text = CurrMthDaysN_1 + "/" + month + "/" + yearN_1;
            LabelDecY1.Text = "31" + "/" + "12" + "/" + yearN_1;
            LabelCurrMonY.Text = CurrMthDays + "/" + month + "/" + year;
            LabelCurrMon.Text = CurrMthDays + "/" + month + "/" + year;
            LabelBudgetDecY.Text = "31" + "/" + "12" + "/" + year;

            Label30_Day1.Text = "0";
            Label31_Day1.Text = "0";
            Label32_Day1.Text = "0";
            Label33_Day1.Text = "0";
            Label34_Day1.Text = "0";
            Label35_Day1.Text = "0";
            Label36_Day1.Text = "0";
            Label37_Day1.Text = "0";
            Label38_Day1.Text = "0";

            Label30_Day2.Text = "0";
            Label31_Day2.Text = "0";
            Label32_Day2.Text = "0";
            Label33_Day2.Text = "0";
            Label34_Day2.Text = "0";
            Label35_Day2.Text = "0";
            Label36_Day2.Text = "0";
            Label37_Day2.Text = "0";
            Label38_Day2.Text = "0";

            Label30_Day3.Text = "0";
            Label31_Day3.Text = "0";
            Label32_Day3.Text = "0";
            Label33_Day3.Text = "0";
            Label34_Day3.Text = "0";
            Label35_Day3.Text = "0";
            Label36_Day3.Text = "0";
            Label37_Day3.Text = "0";
            Label38_Day3.Text = "0";

            Label30_Day4.Text = "0";
            Label31_Day4.Text = "0";
            Label32_Day4.Text = "0";
            Label33_Day4.Text = "0";
            Label34_Day4.Text = "0";
            Label35_Day4.Text = "0";
            Label36_Day4.Text = "0";
            Label37_Day4.Text = "0";
            Label38_Day4.Text = "0";

            Label30_Day5.Text = "0";
            Label31_Day5.Text = "0";
            Label32_Day5.Text = "0";
            Label33_Day5.Text = "0";
            Label34_Day5.Text = "0";
            Label35_Day5.Text = "0";
            Label36_Day5.Text = "0";

            Label30_Day6.Text = "0";
            Label31_Day6.Text = "0";
            Label32_Day6.Text = "0";
            Label33_Day6.Text = "0";
            Label34_Day6.Text = "0";
            Label35_Day6.Text = "0";
            Label36_Day6.Text = "0";

            Label30_Day7.Text = "0";
            Label31_Day7.Text = "0";
            Label32_Day7.Text = "0";
            Label33_Day7.Text = "0";
            Label34_Day7.Text = "0";
            Label35_Day7.Text = "0";
            Label36_Day7.Text = "0";

            string MthDec = "12";

            SPListItem itemBSCurrMthY1 = Common.BusinessService.GetItem(coCd, yearN_1, month, "Balance Sheet");
            SPListItem itemBSDecY1 = Common.BusinessService.GetItem(coCd, yearN_1, MthDec, "Balance Sheet");
            SPListItem itemBS = Common.BusinessService.GetItem(coCd, year, month, "Balance Sheet");

            if (itemBSCurrMthY1 != null)
            {
                Label30_Day1.Text = itemBSCurrMthY1["CM_WC02010101"].ToString();
                Label31_Day1.Text = itemBSCurrMthY1["CM_WC02010102"].ToString();
                Label32_Day1.Text = itemBSCurrMthY1["CM_WC02010103"].ToString();
                Label33_Day1.Text = itemBSCurrMthY1["CM_WC02010104"].ToString();
                Label34_Day1.Text = itemBSCurrMthY1["CM_WC02010100"].ToString();
                Label35_Day1.Text = itemBSCurrMthY1["CM_WC02010200"].ToString();
                Label36_Day1.Text = itemBSCurrMthY1["CM_WC02010000"].ToString();
            }
            if (itemBSDecY1 != null)
            {
                Label30_Day2.Text = itemBSDecY1["CM_WC02010101"].ToString();
                Label31_Day2.Text = itemBSDecY1["CM_WC02010102"].ToString();
                Label32_Day2.Text = itemBSDecY1["CM_WC02010103"].ToString();
                Label33_Day2.Text = itemBSDecY1["CM_WC02010104"].ToString();
                Label34_Day2.Text = itemBSDecY1["CM_WC02010100"].ToString();
                Label35_Day2.Text = itemBSDecY1["CM_WC02010200"].ToString();
                Label36_Day2.Text = itemBSDecY1["CM_WC02010000"].ToString();
            }
            if (itemBS != null)
            {
                Label30_Day3.Text = itemBS["CM_WC02010101"].ToString();
                Label31_Day3.Text = itemBS["CM_WC02010102"].ToString();
                Label32_Day3.Text = itemBS["CM_WC02010103"].ToString();
                Label33_Day3.Text = itemBS["CM_WC02010104"].ToString();
                Label34_Day3.Text = itemBS["CM_WC02010100"].ToString();
                Label35_Day3.Text = itemBS["CM_WC02010200"].ToString();
                Label36_Day3.Text = itemBS["CM_WC02010000"].ToString();
            }

            //int n = m + 1;

            string GlobalSalesY1 = "0";
            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, yearN_1, strMonth, "P_L");
                if (itemPL != null)
                {
                    GlobalSalesY1 = Convert.ToString(Convert.ToDecimal(GlobalSalesY1) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString()));
                }
            }
            for (int i = n; i <= 12; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, yearN_2, strMonth, "P_L");
                if (itemPL != null)
                {
                    GlobalSalesY1 = Convert.ToString(Convert.ToDecimal(GlobalSalesY1) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString()));
                }
            }
            if (GlobalSalesY1 != "0")
            {
                Label37_Day1.Text = (Convert.ToDecimal(Label34_Day1.Text) / Convert.ToDecimal(GlobalSalesY1)).ToString("n");
                Label38_Day1.Text = (Convert.ToDecimal(Label36_Day1.Text) / Convert.ToDecimal(GlobalSalesY1)).ToString("n");
            }

            string GlobalSalesInDecY1 = "0";
            for (int i = 1; i <= 12; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, yearN_1, strMonth, "P_L");
                if (itemPL != null)
                {
                    GlobalSalesInDecY1 = Convert.ToString(Convert.ToDecimal(GlobalSalesInDecY1) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString()));
                }
            }
            if (GlobalSalesInDecY1 != "0")
            {
                Label37_Day2.Text = (Convert.ToDecimal(Label34_Day2.Text) / Convert.ToDecimal(GlobalSalesInDecY1)).ToString("n");
                Label38_Day2.Text = (Convert.ToDecimal(Label36_Day2.Text) / Convert.ToDecimal(GlobalSalesInDecY1)).ToString("n");
            }

            string GlobalSales = "0";
            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, year, strMonth, "P_L");
                if (itemPL != null)
                {
                    GlobalSales = Convert.ToString(Convert.ToDecimal(GlobalSales) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString()));
                }
            }
            for (int i = n; i <= 12; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemPL = Common.BusinessService.GetItem(coCd, yearN_1, strMonth, "P_L");
                if (itemPL != null)
                {
                    GlobalSales = Convert.ToString(Convert.ToDecimal(GlobalSales) + Convert.ToDecimal(itemPL["CM_PL02010000"].ToString()));
                }
            }
            if (GlobalSales != "0")
            {
                Label37_Day3.Text = (Convert.ToDecimal(Label34_Day3.Text) / Convert.ToDecimal(GlobalSales)).ToString("n");
                Label38_Day3.Text = (Convert.ToDecimal(Label36_Day3.Text) / Convert.ToDecimal(GlobalSales)).ToString("n");

                Label30_Day6.Text = (Convert.ToDecimal(Label30_Day3.Text) / Convert.ToDecimal(GlobalSales) * 365).ToString("n");
                Label31_Day6.Text = (Convert.ToDecimal(Label31_Day3.Text) / Convert.ToDecimal(GlobalSales) * 365).ToString("n");
                Label32_Day6.Text = (Convert.ToDecimal(Label32_Day3.Text) / Convert.ToDecimal(GlobalSales) * 365).ToString("n");
                Label33_Day6.Text = (Convert.ToDecimal(Label33_Day3.Text) / Convert.ToDecimal(GlobalSales) * 365).ToString("n");
                Label34_Day6.Text = (Convert.ToDecimal(Label34_Day3.Text) / Convert.ToDecimal(GlobalSales) * 365).ToString("n");
                Label35_Day6.Text = (Convert.ToDecimal(Label35_Day3.Text) / Convert.ToDecimal(GlobalSales) * 365).ToString("n");
                Label36_Day6.Text = (Convert.ToDecimal(Label36_Day3.Text) / Convert.ToDecimal(GlobalSales) * 365).ToString("n");

                Label30_Day7.Text = (Convert.ToDecimal(Label30_Day3.Text) / Convert.ToDecimal(GlobalSales)).ToString("n");
                Label31_Day7.Text = (Convert.ToDecimal(Label31_Day3.Text) / Convert.ToDecimal(GlobalSales)).ToString("n");
                Label32_Day7.Text = (Convert.ToDecimal(Label32_Day3.Text) / Convert.ToDecimal(GlobalSales)).ToString("n");
                Label33_Day7.Text = (Convert.ToDecimal(Label33_Day3.Text) / Convert.ToDecimal(GlobalSales)).ToString("n");
                Label34_Day7.Text = (Convert.ToDecimal(Label34_Day3.Text) / Convert.ToDecimal(GlobalSales)).ToString("n");
                Label35_Day7.Text = (Convert.ToDecimal(Label35_Day3.Text) / Convert.ToDecimal(GlobalSales)).ToString("n");
                Label36_Day7.Text = (Convert.ToDecimal(Label36_Day3.Text) / Convert.ToDecimal(GlobalSales)).ToString("n");
            }

            string GlobalSalesBudget = "0";
            SPListItem itemBudgetPL = Common.BusinessService.GetBudgetItem(coCd, year, "Budget_PL");
            if (itemBudgetPL != null)
            {
                string billData = itemBudgetPL["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

                var objentity = obj as List<fsentity>;

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "PL03010000")
                    {
                        GlobalSalesBudget = Convert.ToString(Convert.ToDecimal(p.Jan.ToString()) + Convert.ToDecimal(p.Feb.ToString()) + Convert.ToDecimal(p.Mar.ToString()) + Convert.ToDecimal(p.Apr.ToString()) + Convert.ToDecimal(p.May.ToString()) + Convert.ToDecimal(p.Jun.ToString()) + Convert.ToDecimal(p.Jul.ToString()) + Convert.ToDecimal(p.Aug.ToString()) + Convert.ToDecimal(p.Sep.ToString()) + Convert.ToDecimal(p.Oct.ToString()) + Convert.ToDecimal(p.Nov.ToString()) + Convert.ToDecimal(p.Dec.ToString()));
                    }

                });
            }
            SPListItem itemBudgetBS = Common.BusinessService.GetBudgetItem(coCd, year, "Budget_BS");
            if (itemBudgetBS != null)
            {
                string billData = itemBudgetBS["BillData"].ToString();

                JavaScriptSerializer Serializer = new JavaScriptSerializer();

                List<fsentity> obj = Serializer.Deserialize<List<fsentity>>(billData);

                var objentity = obj as List<fsentity>;

                objentity.ForEach(p =>
                {
                    if (p.accountcode == "WC03010101")
                    {
                        Label30_Day4.Text = p.Dec.ToString();
                    }

                    if (p.accountcode == "WC03010102")
                    {
                        Label31_Day4.Text = p.Dec.ToString();
                    }

                    if (p.accountcode == "WC03010103")
                    {
                        Label32_Day4.Text = p.Dec.ToString();
                    }

                    if (p.accountcode == "WC03010104")
                    {
                        Label33_Day4.Text = p.Dec.ToString();
                    }

                    if (p.accountcode == "WC03010100")
                    {
                        Label34_Day4.Text = p.Dec.ToString();
                    }

                    if (p.accountcode == "WC03010200")
                    {
                        Label35_Day4.Text = p.Dec.ToString();
                    }

                    if (p.accountcode == "WC03010000")
                    {
                        Label36_Day4.Text = p.Dec.ToString();
                    }


                });
            }
            if (GlobalSalesBudget != "0")
            {
                Label37_Day4.Text = (Convert.ToDecimal(Label34_Day4.Text) / Convert.ToDecimal(GlobalSalesBudget)).ToString("n");
                Label38_Day4.Text = (Convert.ToDecimal(Label36_Day4.Text) / Convert.ToDecimal(GlobalSalesBudget)).ToString("n");
            }


            string WC02010101 = "0";
            string WC02010102 = "0";
            string WC02010103 = "0";
            string WC02010104 = "0";
            string WC02010100 = "0";
            string WC02010200 = "0";
            string WC02010000 = "0";
            for (int i = 1; i <= m; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemRollBS = Common.BusinessService.GetItem(coCd, year, strMonth, "Balance Sheet");
                if (itemRollBS != null)
                {
                    WC02010101 = Convert.ToString(Convert.ToDecimal(WC02010101) + Convert.ToDecimal(itemRollBS["CM_WC02010101"].ToString()));
                    WC02010102 = Convert.ToString(Convert.ToDecimal(WC02010102) + Convert.ToDecimal(itemRollBS["CM_WC02010102"].ToString()));
                    WC02010103 = Convert.ToString(Convert.ToDecimal(WC02010103) + Convert.ToDecimal(itemRollBS["CM_WC02010103"].ToString()));
                    WC02010104 = Convert.ToString(Convert.ToDecimal(WC02010104) + Convert.ToDecimal(itemRollBS["CM_WC02010104"].ToString()));
                    WC02010100 = Convert.ToString(Convert.ToDecimal(WC02010100) + Convert.ToDecimal(itemRollBS["CM_WC02010100"].ToString()));
                    WC02010200 = Convert.ToString(Convert.ToDecimal(WC02010200) + Convert.ToDecimal(itemRollBS["CM_WC02010200"].ToString()));
                    WC02010000 = Convert.ToString(Convert.ToDecimal(WC02010000) + Convert.ToDecimal(itemRollBS["CM_WC02010000"].ToString()));
                }
            }
            for (int i = n; i <= 12; i++)
            {
                string strMonth = i.ToString();

                SPListItem itemRollBS = Common.BusinessService.GetItem(coCd, yearN_1, strMonth, "Balance Sheet");
                if (itemRollBS != null)
                {
                    WC02010101 = Convert.ToString(Convert.ToDecimal(WC02010101) + Convert.ToDecimal(itemRollBS["CM_WC02010101"].ToString()));
                    WC02010102 = Convert.ToString(Convert.ToDecimal(WC02010102) + Convert.ToDecimal(itemRollBS["CM_WC02010102"].ToString()));
                    WC02010103 = Convert.ToString(Convert.ToDecimal(WC02010103) + Convert.ToDecimal(itemRollBS["CM_WC02010103"].ToString()));
                    WC02010104 = Convert.ToString(Convert.ToDecimal(WC02010104) + Convert.ToDecimal(itemRollBS["CM_WC02010104"].ToString()));
                    WC02010100 = Convert.ToString(Convert.ToDecimal(WC02010100) + Convert.ToDecimal(itemRollBS["CM_WC02010100"].ToString()));
                    WC02010200 = Convert.ToString(Convert.ToDecimal(WC02010200) + Convert.ToDecimal(itemRollBS["CM_WC02010200"].ToString()));
                    WC02010000 = Convert.ToString(Convert.ToDecimal(WC02010000) + Convert.ToDecimal(itemRollBS["CM_WC02010000"].ToString()));
                }
            }

            Label30_Day5.Text = (Convert.ToInt32(WC02010101) / 12).ToString();
            Label31_Day5.Text = (Convert.ToInt32(WC02010102) / 12).ToString();
            Label32_Day5.Text = (Convert.ToInt32(WC02010103) / 12).ToString();
            Label33_Day5.Text = (Convert.ToInt32(WC02010104) / 12).ToString();
            Label34_Day5.Text = (Convert.ToInt32(WC02010100) / 12).ToString();
            Label35_Day5.Text = (Convert.ToInt32(WC02010200) / 12).ToString();
            Label36_Day5.Text = (Convert.ToInt32(WC02010000) / 12).ToString();
        }

    }
}
